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

Users SBAT send sequence of txs in sequential blocks #420

Closed
timmoreton opened this issue Aug 26, 2019 · 4 comments · Fixed by #423
Closed

Users SBAT send sequence of txs in sequential blocks #420

timmoreton opened this issue Aug 26, 2019 · 4 comments · Fixed by #423
Assignees
Labels
type:bug Something isn't working

Comments

@timmoreton
Copy link
Contributor

Expected Behavior

A web3 client waiting for a tx to get included in a block should be notified early enough that a subsequent transaction can land in the very next block.

Current Behavior

We see gaps between transactions during migrations and regular use

e.g https://alfajores-blockscout.celo-testnet.org/address/0xcea3ef8e187490a9d85a1849d98412e5d27d1bb3/transactions?block_number=174320&index=0

@timmoreton timmoreton transferred this issue from celo-org/celo-monorepo Aug 26, 2019
@timmoreton timmoreton added the type:bug Something isn't working label Aug 26, 2019
@nambrot
Copy link
Contributor

nambrot commented Aug 27, 2019

Also related is celo-org/celo-monorepo#217

@asaj
Copy link
Contributor

asaj commented Aug 27, 2019

I didn't dig too deeply, but one thing I noticed when playing around in celo-blockchain is that as soon as block N is finalized, validators create block N+1 with a timestamp in the future, and wait around until that timestamp to send the preprepare.

This suggests that the earliest any tx sent between the finalization of block N and the preprepare for N+1 can be included is N+2, adding an arguably unnecessary 1 block latency.

@timmoreton
Copy link
Contributor Author

I think the change you made here:
https://github.com/celo-org/celo-blockchain/blame/master/miner/worker.go#L418

may disable the automatic recommit of txs. I think you did this to stop an already proposed block getting withdrawn and changed when a new tx came in. Maybe it had wider implications.

@asaj asaj self-assigned this Aug 28, 2019
@asaj
Copy link
Contributor

asaj commented Aug 28, 2019

Hmm, maybe a simple fix then is to only disable this for istanbul if we've already sent a pre-prepare

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants