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

Remove lazy parsing of messages. #1052

Closed
wants to merge 2 commits into from

Conversation

schildbach
Copy link
Member

In particular:

  • Message.parsed: removed
  • Message.parseLite(): folded into Message.parse()
  • Message.maybeParse(): removed
  • Message.ensureParsed(): removed
  • Message.isParsed(): removed
  • Block.parseHeader(): folded into Block.parse()
  • Block.parseTransactions(): folded into Block.parse()
  • Block.maybeParseHeader(): removed
  • Block.maybeParseTransactions(): removed
  • Block.ensureParsedHeader(): removed
  • Block.ensureParsedTransactions(): removed
  • Block.isParsedHeader(): removed
  • Block.isParsedTransasctions(): removed
  • MessageSerializer.isParseLazyMode(): removed
  • BitcoinSerializer.parseLazy: removed
  • BitcoinSerializer.getSerializer(): parseLazy parameter removed
  • LazyParseException: removed
  • LazyParseByteCacheTest: renamed to ParseByteCacheTest

@mikehearn
Copy link
Member

Really nice, it will be a breath of fresh air to get rid of this stuff.

As Travis is happy and the changes look reasonable at first glance, I am happy. Have you synced a wallet with these changes? If so, let's merge.

In particular:

* Message.parsed: removed
* Message.parseLite(): folded into Message.parse()
* Message.maybeParse(): removed
* Message.ensureParsed(): removed
* Message.isParsed(): removed
* Block.parseHeader(): folded into Block.parse()
* Block.parseTransactions(): folded into Block.parse()
* Block.maybeParseHeader(): removed
* Block.maybeParseTransactions(): removed
* Block.ensureParsedHeader(): removed
* Block.ensureParsedTransactions(): removed
* Block.isParsedHeader(): removed
* Block.isParsedTransasctions(): removed
* MessageSerializer.isParseLazyMode(): removed
* BitcoinSerializer.parseLazy: removed
* BitcoinSerializer.getSerializer(): parseLazy parameter removed
* LazyParseException: removed
* LazyParseByteCacheTest: renamed to ParseByteCacheTest
@schildbach
Copy link
Member Author

Replaying my testnet wallet with this patch yields exactly the same transactions and the same balance as 0.13 (after fixing the Wallet.reset() issue on both branches).

@schildbach
Copy link
Member Author

Merged.

@schildbach schildbach closed this Jul 28, 2015
@schildbach schildbach deleted the message-remove-lazy branch July 29, 2015 10:39
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.

None yet

2 participants