lbcwallet/rpc/legacyrpc
Josh Rickmar 4656a00705 Improve wallet atomicity.
This changes the database access APIs and each of the "manager"
packages (waddrmgr/wstakemgr) so that transactions are opened (only)
by the wallet package and the namespace buckets that each manager
expects to operate on are passed in as parameters.

This helps improve the atomicity situation as it means that many
calls to these APIs can be grouped together into a single
database transaction.

This change does not attempt to completely fix the "half-processed"
block problem.  Mined transactions are still added to the wallet
database under their own database transaction as this is how they are
notified by the consensus JSON-RPC server (as loose transactions,
without the rest of the block that contains them). It will make
updating to a fixed notification model significantly easier, as the
same "manager" APIs can still be used, but grouped into a single
atomic transaction.
2018-05-23 19:38:56 -07:00
..
config.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
errors.go multi: point all imports towards roasbeef's forks 2018-05-23 19:38:56 -07:00
log.go Use LICENSE file and short license headers. 2016-02-28 22:22:34 -05:00
methods.go Improve wallet atomicity. 2018-05-23 19:38:56 -07:00
rpchelp_test.go multi: point all imports towards roasbeef's forks 2018-05-23 19:38:56 -07:00
rpcserver_test.go Fix race in TestThrottle test. 2016-03-16 11:55:27 -04:00
rpcserverhelp.go Update project dependencies. 2017-06-20 09:34:45 -04:00
server.go Drop fastsha256 in favor of crypto/sha256 (#468) 2017-01-12 09:47:46 -05:00