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

fix: event filters use cbor encoding internally #10085

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

iand
Copy link
Contributor

@iand iand commented Jan 20, 2023

Related Issues

Fixes filecoin-project/ref-fvm#1345

Proposed Changes

All cbor decoding/encoding of event log values by filters is now handled in the Eth API. Internally all values are kept as cbor encoded byte arrays.

NOTE: this invalidates previous data stored in the event log sqlite database so events indexed before this change will not be discoverable. Advise removing the database to start indexing to a new one.

Additional Info

This is currently based on #10083 which contains comprehensive itests for this area.

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

node/impl/full/eth.go Show resolved Hide resolved
@raulk raulk merged commit ddd5ff9 into iand/issue-9849-realtime Jan 23, 2023
@raulk raulk deleted the iand/ref-fvm-issue-1345 branch January 23, 2023 14:14
Stebalien added a commit that referenced this pull request Feb 15, 2023
We merged #10085 without a
migration, so the event database will contain both cbor and non-cbor
values. We need to handle that.
Stebalien added a commit that referenced this pull request Feb 15, 2023
We merged #10085 without a
migration, so the event database will contain both cbor and non-cbor
values. We need to handle that.
Stebalien added a commit that referenced this pull request Feb 15, 2023
We merged #10085 without a
migration, so the event database will contain both cbor and non-cbor
values. We need to handle that.
Stebalien added a commit that referenced this pull request Feb 15, 2023
* fix: events: handle decoded events in database

We merged #10085 without a
migration, so the event database will contain both cbor and non-cbor
values. We need to handle that.

* fix: imports
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

Successfully merging this pull request may close these issues.

2 participants