-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify data object serialization/deserialization to provide extension…
… hooks Make headerParsed, transactionParsed, headerBytesValid and transactionBytesValid protected so subclasses in the same package can access them. Add constructor for use when a block is contained within another object (i.e. AuxPoW header) Make headerParsed, transactionParsed, headerBytesValid and transactionBytesValid protected so subclasses in the same package can access them. Add constructor for use when a block is contained within another object (i.e. AuxPoW header) Add parseTransactions() method which takes in a payload offset, so block parsers can indicate that transactions do not start at byte 80. Extract common interface from BitcoinSerializer to support alternative serializers, as well as dummy serializer for message classes which do not have their network parameters. Thread BitcoinSerializer through messages in place of existing parseLazy and parseRetain properties. Insert dummy serializer into message subclasses when deserialized by Java. Replace calls to construct Block/Transaction classes from payloads, with calls to MessageSerializer, so alternative formats can be supported elegantly. Make headerParsed, transactionParsed, headerBytesValid and transactionBytesValid protected so subclasses in the same package can access them. Add constructor for use when a block is contained within another object (i.e. AuxPoW header) Add parseTransactions() method which takes in a payload offset, so block parsers can indicate that transactions do not start at byte 80.
- Loading branch information
1 parent
16a5e1d
commit 1260265
Showing
43 changed files
with
630 additions
and
194 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.