dcrd/internal/rpcserver
Josh Rickmar 1f138a24ad rpcserver: Use duplicate tx error for recently mined transactions
Attempting to publish a recently-mined transaction using the
sendrawtransaction JSON-RPC method will now use the same error code as
for duplicate transactions currently present in the mempool, rather
than a generic error for double spending or spending unknown inputs.

There is a very small chance that this check results in a false
positive and that a transaction rejected for other reasons is reported
as a duplicate when it had never been mined at all.
2021-08-24 09:52:20 -05:00
..
testdata rpcserver: Add handleSearchRawTransactions tests. 2020-08-29 22:03:04 -05:00
doc.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
interface.go rpcserver: Use duplicate tx error for recently mined transactions 2021-08-24 09:52:20 -05:00
log.go rpcserver: Add logging to internal package. 2019-10-24 21:37:27 -05:00
README.md rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver_test.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver.go rpcserver: Use duplicate tx error for recently mined transactions 2021-08-24 09:52:20 -05:00
rpcserverhandlers_test.go rpcserver: Use duplicate tx error for recently mined transactions 2021-08-24 09:52:20 -05:00
rpcserverhelp_test.go rpcserver: add handleVersion, handleHelp rpc tests. 2021-01-16 18:52:34 -06:00
rpcserverhelp.go rpcserver: Remove unused help entry. 2021-05-13 18:22:53 -05:00
rpcwebsocket.go rpcserver: Impose additional read limits. 2021-06-30 12:38:36 -05:00
treasury_test.go rpcserver: Tune large tspend test amount 2021-08-13 00:45:56 -05:00

rpcserver

Build Status ISC License Doc

Overview

Package rpcserver includes all RPC server interfaces, types, and pieces of code pertaining to implementing the RPC server.

License

Package rpcserver is licensed under the copyfree ISC License.