Browse Source
network: sanitize_tx_broadcast_response - new strings in bitcoind 0.18
regtest_lnd
SomberNight
6 years ago
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
1 changed files with
5 additions and
0 deletions
-
electrum/network.py
|
|
@ -971,10 +971,15 @@ class Network(Logger): |
|
|
|
# https://github.com/bitcoin/bitcoin/blob/cd42553b1178a48a16017eff0b70669c84c3895c/src/rpc/rawtransaction.cpp |
|
|
|
# grep "RPC_TRANSACTION" |
|
|
|
# grep "RPC_DESERIALIZATION_ERROR" |
|
|
|
# https://github.com/bitcoin/bitcoin/blob/d7d7d315060620446bd363ca50f95f79d3260db7/src/util/error.cpp |
|
|
|
rawtransaction_error_messages = { |
|
|
|
r"Missing inputs", |
|
|
|
r"transaction already in block chain", |
|
|
|
r"Transaction already in block chain", |
|
|
|
r"TX decode failed", |
|
|
|
r"Peer-to-peer functionality missing or disabled", |
|
|
|
r"Transaction rejected by AcceptToMemoryPool", |
|
|
|
r"AcceptToMemoryPool failed", |
|
|
|
} |
|
|
|
for substring in rawtransaction_error_messages: |
|
|
|
if substring in server_msg: |
|
|
|