diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2020-07-11 09:55:38 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-28 17:48:15 +0200 |
commit | aaaa3fa9477eef9ea72e4a501d130c57b47b470a (patch) | |
tree | 5cb4db76123a10ff6ff2c24d1278a584eca04d40 /src/index/disktxpos.h | |
parent | 1c1a02bbd246101fd477b0897aef971b511b4241 (diff) |
Replace READWRITEAS macro with AsBase wrapping function
Co-authored-by: Pieter Wuille <pieter@wuille.net>
Diffstat (limited to 'src/index/disktxpos.h')
-rw-r--r-- | src/index/disktxpos.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/index/disktxpos.h b/src/index/disktxpos.h index 7718755b78..1004f7ae87 100644 --- a/src/index/disktxpos.h +++ b/src/index/disktxpos.h @@ -14,8 +14,7 @@ struct CDiskTxPos : public FlatFilePos SERIALIZE_METHODS(CDiskTxPos, obj) { - READWRITEAS(FlatFilePos, obj); - READWRITE(VARINT(obj.nTxOffset)); + READWRITE(AsBase<FlatFilePos>(obj), VARINT(obj.nTxOffset)); } CDiskTxPos(const FlatFilePos &blockIn, unsigned int nTxOffsetIn) : FlatFilePos(blockIn.nFile, blockIn.nPos), nTxOffset(nTxOffsetIn) { |