-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(ingester): handle redeem txns * more important conflict fixes --------- Co-authored-by: Nicolas Pennie <[email protected]>
- Loading branch information
1 parent
fec8d0f
commit b253aab
Showing
10 changed files
with
123 additions
and
64 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Transaction Forwarder | ||
|
||
## Send single transaction locally | ||
|
||
``` | ||
cargo run -- \ | ||
--redis-url 'redis://localhost:6379' \ | ||
--rpc-url $RPC_URL \ | ||
--max-retries 10 \ | ||
--concurrency 10 \ | ||
single --txn 3dzRYn994xzgUeomzczdkMAhicjPZKXkKFSvYKjQpT2Lbnv1pG3DG7de8sVomUMFX9Y3Fquz194jtvVH2sRWMAX7 | ||
``` | ||
|
||
## Send single transaction to Dev/Prod | ||
|
||
``` | ||
cargo run -- \ | ||
--redis-url $REDIS_URL \ | ||
--rpc-url $RPC_URL \ | ||
--max-retries 10 \ | ||
--concurrency 10 \ | ||
single --txn 2HzRtBYKPxRn17LJwYHUNALPJfLRwxwLsdZzfToCD2UoYgw5TCGcSEwkHTvVgrv4s6b9v9hr5tpV2tSjWGa76AWd | ||
``` | ||
|
||
## Backfill tree locally | ||
|
||
``` | ||
cargo run -- \ | ||
--redis-url 'redis://localhost:6379' \ | ||
--rpc-url $RPC_URL \ | ||
--max-retries 10 \ | ||
--concurrency 10 \ | ||
address --address Cu61XHSkbasbvBc3atv5NUMz6C8FYmocNkH7mtjLFjR7 | ||
``` | ||
|
||
## Backfill tree against Dev/Prod | ||
|
||
``` | ||
cargo run -- \ | ||
--redis-url $REDIS_URL \ | ||
--rpc-url $RPC_URL \ | ||
--max-retries 10 \ | ||
--concurrency 3 \ | ||
address --address GAnNkHUWwcC4s4jFgbPT491KtvVRuGBYefZ7Qahcmpqy | ||
``` | ||
|
||
If you want to run against a range, you can use the `before` and/or `after` parameters. Example: | ||
|
||
``` | ||
cargo run -- \ | ||
--redis-url $REDIS_URL \ | ||
--rpc-url $RPC_URL \ | ||
--max-retries 10 \ | ||
--concurrency 5 \ | ||
--after 'SwxK31AXJwCXkHkWSFA4f1u1V9jYgcwr8oDbeqEcNhJEVEgzEmgLVEsQ1pyLeTgzPAHDTmrHfcu5q9QSaAnwPs4' \ | ||
--before '5MUNFgEiFU5FwjasHroDK328Vrj4QAcf2zEK8FKVCBVKpLTynUCaTWNxJDyGMeAemij4qEAYXujVDRHT6WjzJxEX' \ | ||
--replay-forward \ | ||
address --address GAnNkHUWwcC4s4jFgbPT491KtvVRuGBYefZ7Qahcmpqy | ||
``` | ||
|
||
This will push all transactions that are newer than `4DbGBhhcNRar1tL12VWciqAGUsZNaeom9iuWDbza7cE4d3VR9BbD5wkbnu44b4sDkjiqT14nPCxVLzRAqtjhkkWj`. | ||
|
||
If we want to ensure the transactions are sent in an order we want, ensure that concurrency is set to 1. When there's concurrency, the ordering is | ||
not guranteed. |