bittube 4 support

This commit is contained in:
tubedev2000
2020-06-16 16:54:18 -04:00
parent fa902cffee
commit 5227c71f55
6 changed files with 18 additions and 3 deletions
+3 -1
View File
@@ -432,13 +432,14 @@ namespace cryptonote
uint64_t nonce;
uint64_t nonce8;
crypto::cycle cycle;
crypto::cycle40 cycle40;
BEGIN_SERIALIZE()
VARINT_FIELD(major_version)
VARINT_FIELD(minor_version)
if (blob_type != BLOB_TYPE_FORKNOTE2) VARINT_FIELD(timestamp)
FIELD(prev_id)
if (blob_type == BLOB_TYPE_CRYPTONOTE_CUCKOO) FIELD(nonce8)
if (blob_type == BLOB_TYPE_CRYPTONOTE_CUCKOO || blob_type == BLOB_TYPE_CRYPTONOTE_TUBE) FIELD(nonce8)
if (blob_type != BLOB_TYPE_FORKNOTE2) {
if (blob_type == BLOB_TYPE_AEON) {
FIELD(nonce)
@@ -450,6 +451,7 @@ namespace cryptonote
}
}
if (blob_type == BLOB_TYPE_CRYPTONOTE_XTNC || blob_type == BLOB_TYPE_CRYPTONOTE_CUCKOO) FIELD(cycle)
if (blob_type == BLOB_TYPE_CRYPTONOTE_TUBE) FIELD(cycle40)
END_SERIALIZE()
};