forked from ZcashFoundation/zebra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
7. feat(db): Add a transparent address transaction index (ZcashFounda…
…tion#4038) * feat(db): add transaction location index * Apply suggestions from code review Co-authored-by: teor <teor@riseup.net> * add address_tx_ids(); also index spends from addresses Co-authored-by: teor <teor@riseup.net>
- Loading branch information
1 parent
7b7d22a
commit 53a4299
Showing
19 changed files
with
382 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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
10 changes: 10 additions & 0 deletions
10
..._state/disk_format/tests/snapshots/tx_loc_by_transparent_addr_loc_raw_data@mainnet_1.snap
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: zebra-state/src/service/finalized_state/disk_format/tests/snapshot.rs | ||
expression: cf_data | ||
--- | ||
[ | ||
KV( | ||
k: "00000100000000010000010000", | ||
v: "", | ||
), | ||
] |
14 changes: 14 additions & 0 deletions
14
..._state/disk_format/tests/snapshots/tx_loc_by_transparent_addr_loc_raw_data@mainnet_2.snap
This file contains 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
source: zebra-state/src/service/finalized_state/disk_format/tests/snapshot.rs | ||
expression: cf_data | ||
--- | ||
[ | ||
KV( | ||
k: "00000100000000010000010000", | ||
v: "", | ||
), | ||
KV( | ||
k: "00000100000000010000020000", | ||
v: "", | ||
), | ||
] |
10 changes: 10 additions & 0 deletions
10
..._state/disk_format/tests/snapshots/tx_loc_by_transparent_addr_loc_raw_data@testnet_1.snap
This file contains 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: zebra-state/src/service/finalized_state/disk_format/tests/snapshot.rs | ||
expression: cf_data | ||
--- | ||
[ | ||
KV( | ||
k: "00000100000000010000010000", | ||
v: "", | ||
), | ||
] |
14 changes: 14 additions & 0 deletions
14
..._state/disk_format/tests/snapshots/tx_loc_by_transparent_addr_loc_raw_data@testnet_2.snap
This file contains 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
source: zebra-state/src/service/finalized_state/disk_format/tests/snapshot.rs | ||
expression: cf_data | ||
--- | ||
[ | ||
KV( | ||
k: "00000100000000010000010000", | ||
v: "", | ||
), | ||
KV( | ||
k: "00000100000000010000020000", | ||
v: "", | ||
), | ||
] |
This file contains 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 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
12 changes: 12 additions & 0 deletions
12
...nalized_state/zebra_db/block/tests/snapshots/address_transaction_locations@mainnet_1.snap
This file contains 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: zebra-state/src/service/finalized_state/zebra_db/block/tests/snapshot.rs | ||
expression: stored_address_transaction_locations | ||
--- | ||
[ | ||
("t3Vz22vK5z2LcKEdg16Yv4FFneEL1zg9ojd", [ | ||
TransactionLocation( | ||
height: Height(1), | ||
index: TransactionIndex(0), | ||
), | ||
]), | ||
] |
16 changes: 16 additions & 0 deletions
16
...nalized_state/zebra_db/block/tests/snapshots/address_transaction_locations@mainnet_2.snap
This file contains 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
source: zebra-state/src/service/finalized_state/zebra_db/block/tests/snapshot.rs | ||
expression: stored_address_transaction_locations | ||
--- | ||
[ | ||
("t3Vz22vK5z2LcKEdg16Yv4FFneEL1zg9ojd", [ | ||
TransactionLocation( | ||
height: Height(1), | ||
index: TransactionIndex(0), | ||
), | ||
TransactionLocation( | ||
height: Height(2), | ||
index: TransactionIndex(0), | ||
), | ||
]), | ||
] |
Oops, something went wrong.