-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fastx client / auth] Add
OrderInfoRequest
to authority and use it …
…for more robust sync. (#311) * Added dependencies to order effects * Added a order info request command to authority and client * Fix bug in previous_transaction + use order info request command for sync * Fix test_move_calls_chain_many_delete_authority_synchronization test * Test sync_certificate_to_authority_with_timeout * Fix corner case in sync. Co-authored-by: George Danezis <george@danez.is>
- Loading branch information
Showing
8 changed files
with
297 additions
and
69 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
Oops, something went wrong.
f06ff78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bench results
�[0m�[0m�[1m�[32m Finished�[0m release [optimized + debuginfo] target(s) in 1.67s
�[0m�[0m�[1m�[32m Running�[0m
target/release/bench
�[2m2022-01-31T20:50:16.212739Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Starting benchmark: OrdersAndCerts
�[2m2022-01-31T20:50:16.212769Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Preparing accounts.
�[2m2022-01-31T20:50:16.213253Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Open database on path: "/tmp/DB_51576F57129358436C9AC04805C21214978CF438"
�[2m2022-01-31T20:50:20.456586Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Preparing transactions.
�[2m2022-01-31T20:50:29.649942Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m Listening to TCP traffic on 127.0.0.1:9555
�[2m2022-01-31T20:50:30.651333Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Number of TCP connections: 2
�[2m2022-01-31T20:50:30.651363Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Set max_in_flight to 500
�[2m2022-01-31T20:50:30.651366Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Sending requests.
�[2m2022-01-31T20:50:30.655463Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m Sending TCP requests to 127.0.0.1:9555
�[2m2022-01-31T20:50:30.659747Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m Sending TCP requests to 127.0.0.1:9555
�[2m2022-01-31T20:50:31.494965Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 5000 packets
�[2m2022-01-31T20:50:32.244906Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 35000
�[2m2022-01-31T20:50:32.283628Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 35000
�[2m2022-01-31T20:50:32.341987Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 10000 packets
�[2m2022-01-31T20:50:33.175952Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 15000 packets
�[2m2022-01-31T20:50:33.924881Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 30000
�[2m2022-01-31T20:50:33.932509Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 30000
�[2m2022-01-31T20:50:34.007798Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 20000 packets
�[2m2022-01-31T20:50:34.841003Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 25000 packets
�[2m2022-01-31T20:50:35.610302Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 25000
�[2m2022-01-31T20:50:35.636017Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 25000
�[2m2022-01-31T20:50:35.707318Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 30000 packets
�[2m2022-01-31T20:50:36.544399Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 35000 packets
�[2m2022-01-31T20:50:37.291854Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 20000
�[2m2022-01-31T20:50:37.320657Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 20000
�[2m2022-01-31T20:50:37.394936Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 40000 packets
�[2m2022-01-31T20:50:38.240794Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 45000 packets
�[2m2022-01-31T20:50:38.976076Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 15000
�[2m2022-01-31T20:50:39.050502Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 15000
�[2m2022-01-31T20:50:39.079767Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 50000 packets
�[2m2022-01-31T20:50:39.919091Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 55000 packets
�[2m2022-01-31T20:50:40.616800Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 10000
�[2m2022-01-31T20:50:40.750410Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 10000
�[2m2022-01-31T20:50:40.753747Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 60000 packets
�[2m2022-01-31T20:50:41.589485Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 65000 packets
�[2m2022-01-31T20:50:42.319611Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 5000
�[2m2022-01-31T20:50:42.392846Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m In flight 500 Remaining 5000
�[2m2022-01-31T20:50:42.429363Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 70000 packets
�[2m2022-01-31T20:50:43.262524Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 75000 packets
�[2m2022-01-31T20:50:44.062368Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m Done sending TCP requests to 127.0.0.1:9555
�[2m2022-01-31T20:50:44.177152Z�[0m �[32m INFO�[0m �[2mfastpay::server_lib�[0m�[2m:�[0m 127.0.0.1:9555 has processed 80000 packets
�[2m2022-01-31T20:50:44.222585Z�[0m �[32m INFO�[0m �[2mfastpay::mass_client�[0m�[2m:�[0m Done sending TCP requests to 127.0.0.1:9555
�[2m2022-01-31T20:50:44.223796Z�[0m �[32m INFO�[0m �[2mbench�[0m�[2m:�[0m Received 80000 responses.
�[2m2022-01-31T20:50:44.427515Z�[0m �[33m WARN�[0m �[2mbench�[0m�[2m:�[0m Completed benchmark for OrdersAndCerts
Total time: 13776184us, items: 40000, tx/sec: 2903.561682974037