mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-16 23:53:29 +01:00
'sendrawtransaction' improvements
- Make it report the reject code and reason - Make it possible to re-send transactions that are already in the mempool
This commit is contained in:
@@ -49,6 +49,9 @@ enum RPCErrorCode
|
||||
RPC_INVALID_PARAMETER = -8, // Invalid, missing or duplicate parameter
|
||||
RPC_DATABASE_ERROR = -20, // Database error
|
||||
RPC_DESERIALIZATION_ERROR = -22, // Error parsing or validating structure in raw format
|
||||
RPC_TRANSACTION_ERROR = -25, // General error during transaction submission
|
||||
RPC_TRANSACTION_REJECTED = -26, // Transaction was rejected by network rules
|
||||
RPC_TRANSACTION_ALREADY_IN_CHAIN= -27, // Transaction already in chain
|
||||
|
||||
// P2P client errors
|
||||
RPC_CLIENT_NOT_CONNECTED = -9, // Bitcoin is not connected
|
||||
|
||||
Reference in New Issue
Block a user