File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ class SnapshotMetadata
35
35
SnapshotMetadata () { }
36
36
SnapshotMetadata (
37
37
const uint256& base_blockhash,
38
- uint64_t coins_count,
39
- unsigned int nchaintx) :
38
+ uint64_t coins_count) :
40
39
m_base_blockhash (base_blockhash),
41
40
m_coins_count (coins_count) { }
42
41
Original file line number Diff line number Diff line change @@ -2667,7 +2667,7 @@ UniValue CreateUTXOSnapshot(
2667
2667
tip->nHeight , tip->GetBlockHash ().ToString (),
2668
2668
fs::PathToString (path), fs::PathToString (temppath)));
2669
2669
2670
- SnapshotMetadata metadata{tip->GetBlockHash (), maybe_stats->coins_count , tip-> nChainTx };
2670
+ SnapshotMetadata metadata{tip->GetBlockHash (), maybe_stats->coins_count };
2671
2671
2672
2672
afile << metadata;
2673
2673
@@ -2694,9 +2694,7 @@ UniValue CreateUTXOSnapshot(
2694
2694
result.pushKV (" base_height" , tip->nHeight );
2695
2695
result.pushKV (" path" , path.u8string ());
2696
2696
result.pushKV (" txoutset_hash" , maybe_stats->hashSerialized .ToString ());
2697
- // Cast required because univalue doesn't have serialization specified for
2698
- // `unsigned int`, nChainTx's type.
2699
- result.pushKV (" nchaintx" , uint64_t {tip->nChainTx });
2697
+ result.pushKV (" nchaintx" , tip->nChainTx );
2700
2698
return result;
2701
2699
}
2702
2700
You can’t perform that action at this time.
0 commit comments