-
Notifications
You must be signed in to change notification settings - Fork 129
WIP : Ocean Fixing transaction Indexing bugs #2802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
1a69792
updated trasnction id while saving vin and vout with invalidate method
nagarajm22 e1e11bf
fixed format
nagarajm22 bdcdbfa
fixed transaction data type and updated index_transaction
nagarajm22 721e4b4
fixed transaction structure for indexing trasnaction,vin and vout
nagarajm22 a5f33be
fixed transaction id to tuple
nagarajm22 1c90a7c
Restore cpp fmt
Jouzo 45e58d8
Remove unwrap in check_if_evm_tx
Jouzo 4c5b042
Remove ffi exports of index_transaction_*
Jouzo d0f6ee5
Remove transaction clone
Jouzo ef59397
Remove second iteration for total_vout_value
Jouzo 6619cf6
Index vout by TransactionVoutKey
Jouzo e42a678
Fix TransactionVout typing
Jouzo 41198a9
Index vin by TransactionVinKey
Jouzo eee7c27
Merge branch 'feature/ocean-archive' of github.com:DeFiCh/ain into fe…
Jouzo 650e3cb
Index from getblock 2 format
Jouzo e571896
Cleanup
Jouzo 238b1b3
Merge branch feature/ocean-archive into feature/ocean-transaction_fix
Jouzo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,35 @@ | ||
| use bitcoin::Txid; | ||
| use bitcoin::{Amount, ScriptBuf, Sequence, Txid}; | ||
| use serde::{Deserialize, Serialize}; | ||
|
|
||
| pub type TransactionVinId = (Txid, Txid, [u8; 4]); | ||
| pub type TransactionVinVoutId = (Txid, usize); | ||
| #[derive(Debug, Serialize, Deserialize)] | ||
| pub struct TransactionVin { | ||
| pub id: String, | ||
| pub id: TransactionVinId, | ||
| pub txid: Txid, | ||
| pub coinbase: String, | ||
| pub vout: TransactionVinVout, | ||
| pub script: TransactionVinScript, | ||
| pub tx_in_witness: Vec<String>, | ||
| pub sequence: String, | ||
| pub sequence: Sequence, | ||
| } | ||
|
|
||
| #[derive(Debug, Serialize, Deserialize)] | ||
| pub struct TransactionVinVout { | ||
| pub id: String, | ||
| pub id: TransactionVinVoutId, | ||
| pub txid: Txid, | ||
| pub n: i32, | ||
| pub value: String, | ||
| pub value: u32, | ||
| pub token_id: i32, | ||
| pub script: TransactionVinVoutScript, | ||
| } | ||
|
|
||
| #[derive(Debug, Default, Serialize, Deserialize)] | ||
| pub struct TransactionVinScript { | ||
| pub hex: String, | ||
| pub hex: ScriptBuf, | ||
| } | ||
|
|
||
| #[derive(Debug, Default, Serialize, Deserialize)] | ||
| pub struct TransactionVinVoutScript { | ||
| pub hex: String, | ||
| pub hex: ScriptBuf, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,19 @@ | ||
| use bitcoin::{Amount, ScriptBuf, Txid}; | ||
| use serde::{Deserialize, Serialize}; | ||
| #[derive(Debug, Default, Serialize, Deserialize)] | ||
|
|
||
| pub type TransactionVoutId = (Txid, usize); | ||
| #[derive(Debug, Serialize, Deserialize)] | ||
| pub struct TransactionVout { | ||
| pub id: String, | ||
| pub txid: String, | ||
| pub id: TransactionVoutId, | ||
| pub txid: Txid, | ||
| pub n: i32, | ||
| pub value: String, | ||
| pub value: Amount, | ||
| pub token_id: i32, | ||
| pub script: TransactionVoutScript, | ||
| } | ||
|
|
||
| #[derive(Debug, Default, Serialize, Deserialize)] | ||
| pub struct TransactionVoutScript { | ||
| pub hex: String, | ||
| pub hex: ScriptBuf, | ||
| pub r#type: String, | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.