Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Change toBlock to "latest" instead of "pending" #432

Open
loredanacirstea opened this issue Feb 20, 2018 · 0 comments
Open

Change toBlock to "latest" instead of "pending" #432

loredanacirstea opened this issue Feb 20, 2018 · 0 comments

Comments

@loredanacirstea
Copy link
Contributor

Python client does not find open channels from events, due to using the default toBlock = pending. This makes the events come after the sync_channels logic has finished.

Either use latest here

create = get_logs(

Or change the default here:

to_block: Union[int, str] = 'pending',
(is there any benefit of using pending?)

Linked to this issue, an if c: can also be added here

c.deposit += e['args']['_added_deposit']
to make sure the channel exists.

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

No branches or pull requests

1 participant