diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 12:00:54 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2021-06-10 12:00:54 -0500 |
| commit | 7499837a6fe8d3533e1360dce8f3ba230ff76042 (patch) | |
| tree | cd3e089e2e09de33044220ff72461a761b028e3f /src/ringct | |
| parent | ca732849515d1e01147ded7db05defdb5518b13b (diff) | |
| parent | 08e4497c6e3b3f434c0bb255c3942648f153fe66 (diff) | |
| download | monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.gz monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.tar.xz monzero-core-7499837a6fe8d3533e1360dce8f3ba230ff76042.zip | |
Merge pull request #7661
08e4497 Improve cryptonote (block and tx) binary read performance (Lee Clagett)
Diffstat (limited to 'src/ringct')
| -rw-r--r-- | src/ringct/rctTypes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ringct/rctTypes.h b/src/ringct/rctTypes.h index 00b72123a..278ff4164 100644 --- a/src/ringct/rctTypes.h +++ b/src/ringct/rctTypes.h @@ -284,7 +284,7 @@ namespace rct { { FIELD(type) if (type == RCTTypeNull) - return ar.stream().good(); + return ar.good(); if (type != RCTTypeFull && type != RCTTypeSimple && type != RCTTypeBulletproof && type != RCTTypeBulletproof2 && type != RCTTypeCLSAG) return false; VARINT_FIELD(txnFee) @@ -344,7 +344,7 @@ namespace rct { ar.delimit_array(); } ar.end_array(); - return ar.stream().good(); + return ar.good(); } BEGIN_SERIALIZE_OBJECT() @@ -375,7 +375,7 @@ namespace rct { if (mixin >= 0xffffffff) return false; if (type == RCTTypeNull) - return ar.stream().good(); + return ar.good(); if (type != RCTTypeFull && type != RCTTypeSimple && type != RCTTypeBulletproof && type != RCTTypeBulletproof2 && type != RCTTypeCLSAG) return false; if (type == RCTTypeBulletproof || type == RCTTypeBulletproof2 || type == RCTTypeCLSAG) @@ -522,7 +522,7 @@ namespace rct { } ar.end_array(); } - return ar.stream().good(); + return ar.good(); } BEGIN_SERIALIZE_OBJECT() |
