|
|
|
@ -256,7 +256,7 @@ namespace rct {
|
|
|
|
|
{
|
|
|
|
|
FIELD(type)
|
|
|
|
|
if (type == RCTTypeNull)
|
|
|
|
|
return true;
|
|
|
|
|
return ar.stream().good();
|
|
|
|
|
if (type != RCTTypeFull && type != RCTTypeSimple && type != RCTTypeBulletproof && type != RCTTypeBulletproof2 && type != RCTTypeFullBulletproof && type != RCTTypeSimpleBulletproof)
|
|
|
|
|
return false;
|
|
|
|
|
VARINT_FIELD(txnFee)
|
|
|
|
@ -316,7 +316,7 @@ namespace rct {
|
|
|
|
|
ar.delimit_array();
|
|
|
|
|
}
|
|
|
|
|
ar.end_array();
|
|
|
|
|
return true;
|
|
|
|
|
return ar.stream().good();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
struct rctSigPrunable {
|
|
|
|
@ -329,7 +329,7 @@ namespace rct {
|
|
|
|
|
bool serialize_rctsig_prunable(Archive<W> &ar, uint8_t type, size_t inputs, size_t outputs, size_t mixin)
|
|
|
|
|
{
|
|
|
|
|
if (type == RCTTypeNull)
|
|
|
|
|
return true;
|
|
|
|
|
return ar.stream().good();
|
|
|
|
|
if (type != RCTTypeFull && type != RCTTypeSimple && type != RCTTypeBulletproof && type != RCTTypeBulletproof2 && type != RCTTypeFullBulletproof && type != RCTTypeSimpleBulletproof)
|
|
|
|
|
return false;
|
|
|
|
|
if (type == RCTTypeSimpleBulletproof || type == RCTTypeFullBulletproof)
|
|
|
|
@ -448,7 +448,7 @@ namespace rct {
|
|
|
|
|
}
|
|
|
|
|
ar.end_array();
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
return ar.stream().good();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|