Closed scravy closed 5 years ago
Removes some unused variables:
nLastBlockTx
validation.h
miner.cpp
nLastBlockWeight
fMineWitnessTx
CreateNewBlock
hashBestBlock
The global ones from validation.h have been removed in bitcoin too: https://github.com/bitcoin/bitcoin/blob/master/src/validation.h
Signed-off-by: Julian Fleischer julian@thirdhash.com
BIN +31.6 MB src/stSbku9z
@frolosofsky Thx, this one accidentally slipped in... some temporary compiler file :-X. I amended the commit.
Removes some unused variables:
nLastBlockTx
– global variable, declared invalidation.h
and only written to inminer.cpp
, not used anywherenLastBlockWeight
– global variable, declared invalidation.h
and only written to inminer.cpp
, not used anywherefMineWitnessTx
- unused argument, defaults to true, no used inCreateNewBlock
(mines witness always as segwit is enabled by default)hashBestBlock
- unused, never read anywhereThe global ones from
validation.h
have been removed in bitcoin too: https://github.com/bitcoin/bitcoin/blob/master/src/validation.hSigned-off-by: Julian Fleischer julian@thirdhash.com