Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Fix Pending Transactions and EIP-155 #22

Merged
merged 4 commits into from
Jun 17, 2020
Merged

Fix Pending Transactions and EIP-155 #22

merged 4 commits into from
Jun 17, 2020

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Jun 17, 2020

Motivation

Waiting for pending transactions was not working as expected. The future would panic if polled again after completion (obviously) and we weren't scheduling a follow-up call with the waker so that we keep getting polled.

Also fixes a bug with the EIP-155 sighash implementation: when not using eip-155, the chain_id and 2 0's should not be hashed.

Solution

  1. Reset the pending receipt future until the tx gets mined
  2. Schedule follow up calls by making a call to ctx.waker().wake_by_ref()
  3. Fix the sighash

@gakonst gakonst merged commit 20493e0 into master Jun 17, 2020
@gakonst gakonst deleted the gakonst/pending-txs branch June 17, 2020 08:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant