Summary
This PR adds coverage to src/validation
in the functional test suite when a transaction that is the coinbase is sent as a tx
This adds another tx to invalid_txs.py
How to check for coverage
This is only covered currently in mempool_accept.py
you can test this by modifying the coinbase
message and then running the test suite and observing that only mempool_accept.py
fails
You can also check that it is not covered by doing the following
grep -nri "coinbase" ./test/functional/data/invalid_txs.py
grep -nri "assert_raises.*coinbase" ./test/functional
grep -nr "\"coinbase" ./test/functional