aboutsummaryrefslogtreecommitdiff
path: root/src/rpcprotocol.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-02-22 12:02:42 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-03-27 12:33:55 +0100
commit1d46fe3327f6645fd79b442cd72ef422418c1a50 (patch)
tree0f7a4f089e41ba3e6697e8e30436f2f7b36f756f /src/rpcprotocol.h
parentebb783a9f2acd0992a5497deb4953271ebfa4726 (diff)
downloadbitcoin-1d46fe3327f6645fd79b442cd72ef422418c1a50.tar.xz
'sendrawtransaction' improvements
- Make it report the reject code and reason - Make it possible to re-send transactions that are already in the mempool
Diffstat (limited to 'src/rpcprotocol.h')
-rw-r--r--src/rpcprotocol.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpcprotocol.h b/src/rpcprotocol.h
index 80cdb34f15..8b3df19621 100644
--- a/src/rpcprotocol.h
+++ b/src/rpcprotocol.h
@@ -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