James O'Beirne
615c1adfb0
refactor: wrap CCoinsViewCursor in unique_ptr
...
Specifically with CCoinsViewDB, if a raw cursor is allocated and
not freed, a cryptic leveldb assertion failure occurs on
CCoinsViewDB destruction.
See: https://github.com/google/leveldb/issues/142#issuecomment-414418135
2021-06-17 09:47:08 -04:00
Carl Dong
ee0ab1e959
fuzz: Initialize a TestingSetup for test_one_input
...
For fuzz tests that need it.
2021-06-10 15:04:39 -04:00
practicalswift
37371268d1
Mark CheckTxInputs
[[nodiscard]]
(out-param txfee
only set if call is successful). Avoid UUM in fuzzing harness coins_view
.
2021-05-25 21:09:05 +00:00
MarcoFalke
fae4ee545a
fuzz: Add missing CheckTransaction before CheckTxInputs
2021-05-17 10:04:57 +02:00
Fabian Jahr
9c8a265fd2
refactor: Pass hash_type to CoinsStats in stats object
2021-04-19 20:28:48 +02:00
MarcoFalke
eeee8f5be1
fuzz: Removed unused try-catch in coins_view
2021-03-30 10:16:22 +02:00
Carl Dong
106bcd4f39
node/coinstats: Pass in BlockManager to GetUTXOStats
2021-03-08 15:54:31 -05:00
MarcoFalke
fa576b4532
Move MakeNoLogFileContext to common libtest_util, and use it in bench
...
Can be reviewed with --color-moved=dimmed-zebra
2021-03-03 09:17:37 +01:00
MarcoFalke
fae216a73d
scripted-diff: Rename MakeFuzzingContext to MakeNoLogFileContext
...
-BEGIN VERIFY SCRIPT-
# Rename
sed -i -e 's/MakeFuzzingContext/MakeNoLogFileContext/g' $(git grep -l MakeFuzzingContext)
# Bump the copyright of touched files in this scripted diff to avoid touching them again later
./contrib/devtools/copyright_header.py update ./src/test/fuzz/
-END VERIFY SCRIPT-
2021-02-22 10:27:22 +01:00
Carl Dong
abb6fa7285
fuzz: Initialize a full TestingSetup where appropriate
...
A full TestingSetup is required for both coins_view and
load_external_block_file as they interact with the active chainstate.
2021-01-21 09:29:42 -05:00
MarcoFalke
fa75d40ef8
fuzz: Introduce CallOneOf helper to replace switch-case
...
Can be reviewed with --ignore-all-space
2021-01-11 10:37:16 +01:00
MarcoFalke
44444ba759
fuzz: Link all targets once
2020-12-10 07:15:42 +01:00
Pieter Wuille
525cbd425e
Only relay Taproot spends if next block has it active
2020-10-30 15:52:19 -07:00
Fabian Jahr
a712cf6f68
rpc: gettxoutsetinfo can specify hash_type (only legacy option for now)
2020-06-22 00:55:44 +02:00
practicalswift
f9b22e3bdb
tests: Add fuzzing harness for CCoinsViewCache
2020-05-25 10:05:06 +00:00