Skip to content
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

Delayed Balance Substraction on Cross-shard Transactions #919

Open
pichaoqkc opened this issue Sep 28, 2020 · 0 comments
Open

Delayed Balance Substraction on Cross-shard Transactions #919

pichaoqkc opened this issue Sep 28, 2020 · 0 comments

Comments

@pichaoqkc
Copy link
Contributor

pichaoqkc commented Sep 28, 2020

The Prometheus server was supposed to count the balance of each shard when the cross-shard transaction happens (#918), but the result sometimes gets wrong.

In this case, shard 0 transferred balances to each other shards(1 ~ 7), the curve of the total balance is supposed to be smooth but not.
image
Transactions happened at time 13:27:45, we can notice a total balance increase, which shouldn’t be there. When we dived deep into the change of each shard, we found that the balance of shard 1~7 increased as expected at time 13:27:45.
image
But the balance of shard 0 began to decrease till 13:31:45:
image

Normally, the counting script would observe the decrease of sender first and then the increase of receiver:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant