Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Process SC events after write_batch() commit #426

Merged
merged 2 commits into from
May 20, 2018
Merged

Process SC events after write_batch() commit #426

merged 2 commits into from
May 20, 2018

Conversation

brianlenz
Copy link
Contributor

@brianlenz brianlenz commented May 19, 2018

What current issue(s) does this address, or what feature is it adding?

Fixes #424.

How did you solve this problem?

Emit SC events after the block batch has been committed.

How did you make sure your solution works?

Tested it.

Are there any special changes in the code that we should be aware of?

No.

Please check the following, if applicable:

  • Did you add any tests?
  • Did you run make lint?
  • Did you run make test?
  • Are you making a PR to a feature branch or development rather than master?
  • Did you add an entry to CHANGELOG.rst? (if not, please do)

Brian Lenz added 2 commits May 19, 2018 15:08
* Fixed a bug with smart contract events not being able to lookup the current block being processed due to the fact that the block persistence hasn't finalized via write_batch() commit. Events are now emitted after the commit, so that blocks can be looked up.

fixes #424
@coveralls
Copy link

coveralls commented May 19, 2018

Coverage Status

Coverage remained the same at 78.829% when pulling d1bd063 on brianlenz:fix-sc-event-block-lookup into 0a47d01 on CityOfZion:development.

@localhuman
Copy link
Collaborator

Looks good, thanks for tracking the issue down!

@localhuman localhuman merged commit 2769fed into CityOfZion:development May 20, 2018
@brianlenz brianlenz deleted the fix-sc-event-block-lookup branch May 20, 2018 23:29
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.

3 participants