miner block header signing

This commit is contained in:
wowario
2023-02-24 11:27:00 +03:00
parent dd4556c5e1
commit 7d1b51ebf7
11 changed files with 105 additions and 0 deletions
+4
View File
@@ -895,6 +895,10 @@ namespace rpc
header.minor_version = b.minor_version;
header.timestamp = b.timestamp;
header.nonce = b.nonce;
if (b.major_version >= HF_VERSION_BLOCK_HEADER_MINER_SIG)
{
header.signature = b.signature;
}
header.prev_id = b.prev_id;
header.depth = m_core.get_current_blockchain_height() - header.height - 1;