Skip to content

Commit

Permalink
Merge pull request #77 from lxfind/id-leak-verifier
Browse files Browse the repository at this point in the history
Add ID leak verifier
  • Loading branch information
lxfind authored Dec 22, 2021
2 parents a95b586 + 8b52d07 commit 202a854
Show file tree
Hide file tree
Showing 9 changed files with 695 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fastpay_core/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl AuthorityState {
let object = self.object_state(&object_id)?;
let lock = self
.get_order_lock(&object.to_object_reference())
.or(Ok(&None))?;
.or::<FastPayError>(Ok(&None))?;

Ok(AccountInfoResponse {
object_id: object.id(),
Expand Down
1 change: 1 addition & 0 deletions fastx_programmability/verifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ publish = false

[dependencies]
move-binary-format = { git = "https://github.com/diem/diem", rev="5572eae5e35407f10316b473f95cb155a5e8d40b" }
move-bytecode-verifier = { git = "https://github.com/diem/diem", rev="5572eae5e35407f10316b473f95cb155a5e8d40b" }
move-core-types = { git = "https://github.com/diem/diem", rev="5572eae5e35407f10316b473f95cb155a5e8d40b" }

fastx-types = { path = "../../fastx_types" }
Expand Down
Loading

1 comment on commit 202a854

@github-actions
Copy link
Contributor

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 0.35s
�[0m�[0m�[1m�[32m Running�[0m target/release/bench
[2021-12-22T18:21:24Z INFO bench] Preparing accounts.
[2021-12-22T18:21:26Z INFO bench] Preparing transactions.
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9569
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9568
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9560
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9559
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9558
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9557
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9555
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9562
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9567
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9563
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9564
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9565
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9566
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9561
[2021-12-22T18:21:34Z INFO fastpay::network] Listening to Udp traffic on 127.0.0.1:9556
[2021-12-22T18:21:35Z INFO bench] Set max_in_flight per shard to 66
[2021-12-22T18:21:35Z INFO bench] Sending requests.
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9557 (shard 2)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9555 (shard 0)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9566 (shard 11)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9564 (shard 9)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9560 (shard 5)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9565 (shard 10)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9568 (shard 13)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9559 (shard 4)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9563 (shard 8)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9561 (shard 6)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9567 (shard 12)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9569 (shard 14)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9556 (shard 1)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9562 (shard 7)
[2021-12-22T18:21:35Z INFO fastpay::network] Sending Udp requests to 127.0.0.1:9558 (shard 3)
[2021-12-22T18:21:35Z INFO fastpay::network] In flight 66 Remaining 5000
[2021-12-22T18:21:36Z INFO fastpay::network] In flight 66 Remaining 5000
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9561 (shard 6) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9560 (shard 5) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9557 (shard 2) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9566 (shard 11) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9569 (shard 14) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9559 (shard 4) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9555 (shard 0) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9563 (shard 8) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9562 (shard 7) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9565 (shard 10) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9568 (shard 13) has processed 5000 packets
[2021-12-22T18:21:45Z INFO fastpay::network] 127.0.0.1:9567 (shard 12) has processed 5000 packets
[2021-12-22T18:21:46Z INFO fastpay::network] 127.0.0.1:9556 (shard 1) has processed 5000 packets
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9569 (shard 14)
[2021-12-22T18:21:46Z INFO fastpay::network] 127.0.0.1:9558 (shard 3) has processed 5000 packets
[2021-12-22T18:21:46Z INFO fastpay::network] 127.0.0.1:9564 (shard 9) has processed 5000 packets
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9566 (shard 11)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9559 (shard 4)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9560 (shard 5)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9555 (shard 0)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9561 (shard 6)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9568 (shard 13)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9567 (shard 12)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9564 (shard 9)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9562 (shard 7)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9563 (shard 8)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9558 (shard 3)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9557 (shard 2)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9556 (shard 1)
[2021-12-22T18:21:46Z INFO fastpay::network] Done sending Udp requests to 127.0.0.1:9565 (shard 10)
[2021-12-22T18:21:46Z INFO bench] Received 80000 responses.
[2021-12-22T18:21:46Z WARN bench] Total time: 11004354us, items: 40000, tx/sec: 3634.92486701173

Please sign in to comment.