diff options
| author | MarcoFalke <[email protected]> | 2018-08-10 21:31:06 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-08-10 21:31:08 -0400 |
| commit | 09ada21ca282d3e252cf2203cd227860488547ba (patch) | |
| tree | 1bd403e0adb185ae8d16dc96eaf960ba5bc25493 /src/validationinterface.cpp | |
| parent | Merge #13907: Introduce a maximum size for locators. (diff) | |
| parent | Simplify comparison in rpc_blockchain.py. (diff) | |
| download | discoin-09ada21ca282d3e252cf2203cd227860488547ba.tar.xz discoin-09ada21ca282d3e252cf2203cd227860488547ba.zip | |
Merge #13924: tests: Simplify comparison in rpc_blockchain.py
1f87c372b5 Simplify comparison in rpc_blockchain.py. (Daniel Kraft)
Pull request description:
The test for `gettxoutsetinfo` in `rpc_blockchain.py` verifies that the result is the same as before after invalidating and reconsidering a block. The comparison has to exclude the `disk_size` field, though, as it is not deterministic.
Instead of comparing all the other fields for equality, this change explicitly removes the `disk_size` field and then compares the full objects. This makes the intent more explicit (compare everything except for `disk_size`, not compare just a given list of fields) and also the code simpler.
Tree-SHA512: 3c376a8836b62988fb2f0117c9ca65de64a33bf3cd4980a123de30bf5e7b7a48eda477b25e03d672ff076e205c698e83432469156caa0f0f3ebbb0480f0dd77d
Diffstat (limited to 'src/validationinterface.cpp')
0 files changed, 0 insertions, 0 deletions