fix: log and record the real txid instead of the wtxid
The daemon computed the finalized transaction id as a double SHA256 over the full transaction hex. For segwit transactions that hash includes witness data, so the value logged was the wtxid, not the txid. The same wrong value was also returned and saved to history when another peer had already broadcast the transaction.
Parse the transaction with embit and use its txid instead.
Closes #48 (closed)