mirror of
https://github.com/monero-project/monero.git
synced 2025-12-14 22:14:10 -05:00
Improve cryptonote (block and tx) binary read performance
This commit is contained in:
parent
0a1ddc2eff
commit
08e4497c6e
29 changed files with 229 additions and 230 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue