miner block header signing

This commit is contained in:
wowario
2021-08-30 00:04:17 +03:00
parent 3898c1c4d9
commit 7f7d697f43
12 changed files with 104 additions and 0 deletions
+4
View File
@@ -1934,6 +1934,10 @@ namespace cryptonote
return false;
}
b.nonce = req.starting_nonce;
if (b.major_version >= BLOCK_HEADER_MINER_SIG)
{
b.signature = {};
}
crypto::hash seed_hash = crypto::null_hash;
if (b.major_version >= RX_BLOCK_VERSION && !epee::string_tools::hex_to_pod(template_res.seed_hash, seed_hash))
{