-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
multi: adjust OP_RETURN message construction, add deserialization of …
…sidechain proposal data (#52) * types: add deserialization of M1 sidechain proposals * multi: construct/parse coinbase messages with valid OP_RETURNs Instead of creating `ScriptBuf`s directly from raw bytes (with OP_RETURN at the start), we do it via `PushBytesBuf::try_from(Vec<u8>)` + `ScriptBuf::new_op_return`. This adds the correct pushdata instruction to the script. Coinbase message parsing logic is also adjusted accordingly. * validator: adjust M1 message construction 1. Fix the version at `0` 2. Encode the title length, as specified by the V0 serialization scheme. * server: add deserialized sidechain proposals to GetSidechainProposalsResponse * server: update cusf_sidechain_proto * server: update cusf_sidechain_proto
- Loading branch information
1 parent
e93930e
commit febc0cb
Showing
6 changed files
with
368 additions
and
114 deletions.
There are no files selected for viewing
Submodule cusf_sidechain_proto
updated
2 files
+25 −0 | proto/cusf/mainchain/v1/validator.proto | |
+1 −1 | proto/cusf/mainchain/v1/wallet.proto |
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.