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

Non determinism #8

Closed
tynes opened this issue May 30, 2018 · 0 comments
Closed

Non determinism #8

tynes opened this issue May 30, 2018 · 0 comments

Comments

@tynes
Copy link
Member

tynes commented May 30, 2018

While testing out the provided examples, I noticed a case of nondeterminism
After cloning the repo down and running npm install:

$ while true; do node examples/bcoin-getXPUBs.js; sleep 1; done

{ Error: Incorrect sequence number.
    at ProtocolReader.readFirstMessage (/Users/marktyneway/Projects/github.com/bpanel-org/bledger/lib/protocol/ledgerprotocol.js:298:10)
    at ProtocolReader.pushMessage (/Users/marktyneway/Projects/github.com/bpanel-org/bledger/lib/protocol/ledgerprotocol.js:356:19)
    at HIDDevice._exchange (/Users/marktyneway/Projects/github.com/bpanel-org/bledger/lib/devices/ledgerhid.js:223:14)
    at <anonymous> type: 'ProtocolError', message: 'Incorrect sequence number.' }
Account: m/44'/0'/0' addresses:
  /0/0: ...
  /1/0: ...

  /0/1: ...
  /1/1: ...

  /0/2: ...
  /1/2: ...

  /0/3: ...
  /1/3: ...

It will sometimes return the addresses as expected in examples/bcoin-getXPUBs.js but other times it will result in the above error

@nodech nodech mentioned this issue Jul 6, 2018
6 tasks
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

No branches or pull requests

1 participant