miner block header signing

This commit is contained in:
wowario
2023-10-01 15:40:16 +03:00
parent 2e18be9977
commit de2a8c65cf
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;