Skip to content

Commit

Permalink
chore: update transaction store
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-QuanLeA committed Jun 6, 2024
1 parent 97943bd commit fac7119
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions docs/stores-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,20 +256,20 @@
## A. Analyze **transaction** table
### 1. tx - transaction

|**Ledger_Sync**|**Yaci_Store**| **Note** |
| :- | :- |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|block_id|block_hash| |
|fee|fee| |
|hash|tx_hash| |
|tx_metadata_hash_id|auxiliary_datahash| |
|block_index|| Index of transaction in block |
|deposit|| |
|invalid_before|| All values are null. |
|invalid_hereafter|| All values are null. |
|out_sum|| The sum of the transaction outputs (in Lovelace). |
|script_size|| Toàn Null |
|size|N/A| <p>Definition: The size of the transaction in bytes.<br>Logic in ledger_sync :<br>size là size của script<br>public void addScriptSize(int size) {</p><p>if (this.size == null) {</p><p>` `this.size = 0;</p><p>}</p><p>this.size += size;</p><p>}</p><p></p> |
|valid_contract|| Logic in ledger_sync:<br>validContract = !invalidTransactions.contains(txIdx);<br> |
| **Ledger_Sync** | **Yaci_Store** | **Note** |
|:--------------------|:-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| block_id | block_hash | |
| fee | fee | |
| hash | tx_hash | |
| tx_metadata_hash_id | auxiliary_datahash | |
| block_index | | Index of transaction in block |
| deposit | | |
| invalid_before | | All values are null. |
| invalid_hereafter | | All values are null. |
| out_sum | | The sum of the transaction outputs (in Lovelace). |
| script_size | | All values are null. |
| size | | <p>Definition: The size of the transaction in bytes.<br>Logic in ledger_sync :<br>size là size của script<br>public void addScriptSize(int size) {</p><p>if (this.size == null) {</p><p>` `this.size = 0;</p><p>}</p><p>this.size += size;</p><p>}</p><p></p> |
| valid_contract | | Logic in ledger_sync:<br>validContract = !invalidTransactions.contains(txIdx);<br> |
## B. Analyze **transaction_witness** table
### 1. tx_witness - transaction_witness

Expand Down

0 comments on commit fac7119

Please sign in to comment.