mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
elements style genesis block commits to signblockscript in CommitToArguments
This commit is contained in:
parent
3169d380a6
commit
ff32b17c5d
2 changed files with 116 additions and 116 deletions
|
|
@ -24,8 +24,8 @@ static std::vector<unsigned char> CommitToArguments(const Consensus::Params& par
|
|||
CSHA256 sha2;
|
||||
unsigned char commitment[32];
|
||||
sha2.Write((const unsigned char*)networkID.c_str(), networkID.length());
|
||||
// sha2.Write((const unsigned char*)HexStr(params.fedpegScript).c_str(), HexStr(params.fedpegScript).length());
|
||||
// sha2.Write((const unsigned char*)HexStr(params.signblockscript).c_str(), HexStr(params.signblockscript).length());
|
||||
//sha2.Write((const unsigned char*)HexStr(params.fedpegScript).c_str(), HexStr(params.fedpegScript).length());
|
||||
sha2.Write((const unsigned char*)HexStr(params.signblockscript).c_str(), HexStr(params.signblockscript).length());
|
||||
sha2.Finalize(commitment);
|
||||
return std::vector<unsigned char>(commitment, commitment + 32);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue