MarcoFalke
fa0739a7d3
style: Sort file list after rename
2021-11-16 10:05:21 +01:00
MarcoFalke
fa53e3a58c
scripted-diff: Move miner to src/node
...
-BEGIN VERIFY SCRIPT-
# Move module
git mv src/miner.cpp src/node/
git mv src/miner.h src/node/
# Replacements
sed -i 's:miner\.h:node/miner.h:g' $(git grep -l miner)
sed -i 's:miner\.cpp:node/miner.cpp:g' $(git grep -l miner)
sed -i 's:MINER_H:NODE_MINER_H:g' $(git grep -l MINER_H)
-END VERIFY SCRIPT-
2021-11-16 10:04:55 +01:00
Carl Dong
f0dd5e6bb4
test/util: Use existing chainman in ::PrepareBlock
2021-06-10 15:04:39 -04:00
MarcoFalke
fa91994b1b
fuzz: Add utxo_snapshot target
2021-05-16 11:34:27 +02:00
Carl Dong
7b8e976cd5
miner: Add chainstate member to BlockAssembler
2021-03-24 15:40:56 -04:00
Carl Dong
eede0647b0
Revert "scripted-diff: Invoke CreateNewBlock with chainstate"
...
This reverts commit 46b7f29340
.
2021-03-24 15:40:56 -04:00
Carl Dong
46b7f29340
scripted-diff: Invoke CreateNewBlock with chainstate
...
-BEGIN VERIFY SCRIPT-
find_regex='(\.|->)CreateNewBlock\(' \
&& git grep -l -E "$find_regex" -- src \
| grep -v '^src/miner\.\(cpp\|h\)$' \
| xargs sed -i -E 's@'"$find_regex"'@\0::ChainstateActive(), @g'
-END VERIFY SCRIPT-
2021-03-08 15:54:31 -05:00
MarcoFalke
fa0074e2d8
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2020-12-31 09:45:41 +01:00
MarcoFalke
fa34587f1c
scripted-diff: Replace EnsureChainman with Assert in unit tests
...
-BEGIN VERIFY SCRIPT-
sed --regexp-extended -i -e 's/EnsureChainman\((m?_?node)\)\./Assert(\1.chainman)->/g' $(git grep -l EnsureChainman)
-END VERIFY SCRIPT-
2020-06-15 07:39:26 -04:00
MarcoFalke
fa6ef701ad
util: Add Assert identity function
...
The utility is primarily useful to dereference pointer types, which are
known to be not null at that time.
For example, the ArgsManager is known to exist when the wallets are
started. Instead of silently relying on that assumption, Assert can be
used to abort the program and avoid UB should the assumption ever be
violated.
2020-06-15 07:39:08 -04:00
MarcoFalke
fa1d97b256
validation: Make ProcessNewBlock*() members of ChainstateManager
2020-05-21 09:56:16 -04:00
MarcoFalke
faa92a2297
rpc: Remove mempool global from miner
2019-12-23 06:12:10 +07:00
Martin Zumsande
f613e5dfda
[test] move mining helper functions into test library
2019-11-25 16:40:03 +01:00