<!-- This issue tracker is only for technical issues related to Bitcoin Core. General bitcoin questions and/or support requests are best directed to the Bitcoin StackExchange at https://bitcoin.stackexchange.com. For reporting security issues, please read instructions at https://bitcoincore.org/en/contact/. If the node is "stuck" during sync or giving "block checksum mismatch" errors, please ensure your hardware is stable by running memtest and observe CPU temperature with a load-test tool such as linpack before creating an issue! -->
<!-- Describe the issue -->
Expected behavior The transaction will be sent to the other node.
<!--- What behavior did you expect? -->
Actual behavior
When calling sendrawtransaction, the provided output is:
error code: -26
error message:
non-mandatory-script-verify-flag (Signature must be zero for failed CHECK(MULTI)SIG operation)
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
To reproduce
./bitcoin-cli --datadir=/home/user/bitcoinNodes/node2 signrawtransactionwithwallet \
02000000018a0cd4d224a023fd8ee2cbc43451fb01a853c55ec009b34145c464da1e0c4b5a0000000000ffffffff02e00f9700000000001600140845db2986a7dba1f41bc3fac2617965da9d70e90000000000000000136a1149204b4e4f5720424c4f434b434841494e00000000 \
'[{"txid": "5a4b0c1eda64c44541b309c05ec553a801fb5134c4cbe28efd23a024d2d40c8a", "vout":0, "scriptPubKey": "00141b35076bfdb3e38c99dce3f73895009bd650191e", "amount":0.099}]'
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
System information OS: Ubuntu 20.04.1 LTS Bitcoin version: 0.20
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
<!-- GUI-related issue? What is your operating system and its version? If Linux, what is your desktop environment and graphical shell? -->
<!-- Any extra information that might be useful in the debugging process. -->
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->