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

Correctly integrate CNoteData::witnessHeight into wallet code #1858

Merged
merged 4 commits into from Nov 15, 2016

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Nov 15, 2016

Closes #1715.

@str4d str4d added C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. A-wallet Area: Wallet labels Nov 15, 2016
@str4d str4d added this to the 1.0.3 milestone Nov 15, 2016
@bitcartel
Copy link
Contributor

bitcartel commented Nov 15, 2016

@str4d
Copy link
Contributor Author

str4d commented Nov 15, 2016

  • The -1 is taken from the implicit "no chain" height in CChain::Height(), which by definition doesn't have a defined constant. Perhaps it would be better to just use < 0 instead, although had I done so before, the assertion wouldn't have triggered and we wouldn't have identified this bug (although technically, maybe it wouldn't have been a problem then - but the other bugs we found along the way definitely are).
  • It's somewhat cosmetic (as is the loop that got added in between for sanity checking), so I'd be inclined to leave it as-is for the purpose of making the diff easier to read. We can move it when implementing Rebuild witness and nullifier caches in wallet if a large reorganisation occurs #1302.
  • No, that should be in a separate PR (at the very least, it would not be implementable for 1.0.3).

@ebfull
Copy link
Contributor

ebfull commented Nov 15, 2016

ACK

@zkbot r+

@zkbot
Copy link
Contributor

zkbot commented Nov 15, 2016

📌 Commit a4ef3aa has been approved by ebfull

zkbot pushed a commit that referenced this pull request Nov 15, 2016
Correctly integrate CNoteData::witnessHeight into wallet code

Closes #1715.
@zkbot
Copy link
Contributor

zkbot commented Nov 15, 2016

⌛ Testing commit a4ef3aa with merge 4e4ca6d...

@zkbot
Copy link
Contributor

zkbot commented Nov 15, 2016

☀️ Test successful - zcash

@zkbot zkbot merged commit a4ef3aa into zcash:master Nov 15, 2016
@bitcartel
Copy link
Contributor

@ebfull I didn't ACK this yet, still reviewing and looking at tickets #1715 and #1794. @str4d I'll continue to add any comments to this ticket and if we need to make any changes for release we can open a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-wallet Area: Wallet C-bug Category: This is a bug S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants