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

Equals on AggregateAndProof throws #58

Closed
mpetrunic opened this issue Aug 4, 2020 · 0 comments · Fixed by #60
Closed

Equals on AggregateAndProof throws #58

mpetrunic opened this issue Aug 4, 2020 · 0 comments · Fixed by #60

Comments

@mpetrunic
Copy link
Member

Ideally, equals method should catch stuff and return false. But curious what could have caused this

(node:17070) UnhandledPromiseRejectionWarning: Error: Boolean value must be true or false
    at BooleanType.assertValidValue (/home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/types/basic/boolean.js:35:13)
    at BooleanType.equals (/home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/types/basic/abstract.js:74:10)
    at BitListStructuralHandler.equals (/home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/array.js:57:35)
    at /home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/container.js:83:37
    at Array.every (<anonymous>)
    at ContainerStructuralHandler.equals (/home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/backings/structural/container.js:79:46)
    at ContainerType.equals (/home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/types/composite/abstract.js:54:30)
    at /home/mpetrunic/projects/eth2/lodestar/packages/lodestar/lib/db/api/beacon/repositories/aggregateAndProof.js:51:46
    at CompositeListTreeHandler.findIndex (/home/mpetrunic/projects/eth2/lodestar/node_modules/@chainsafe/ssz/lib/backings/tree/array.js:393:11)
    at /home/mpetrunic/projects/eth2/lodestar/packages/lodestar/lib/db/api/beacon/repositories/aggregateAndProof.js:50:27

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 a pull request may close this issue.

1 participant