Branch: refs/heads/master
Home: https://github.com/btcsuite/btcwallet
Commit: c9d9b4b610638361cfcd6fe1a904351f3b5d7d63
https://github.com/btcsuite/btcwallet/commit/c9d9b4b610638361cfcd6fe1a904351f3b5d7d63
Author: Josh Rickmar <[email protected]>
Date: 2015-03-02 (Mon, 02 Mar 2015)
Changed paths:
M rpcserver.go
M wallet.go
Log Message:
-----------
Implement several btcd RPCs in wallet as well.
Wallet should handle these so that wallet clients don't end up
creating requests to btcd about the latest processed block, which is
not the same as wallet's most recently processed block.
By providing wallet clients with this info, we avoid a race where the
client thinks wallet has processed N blocks, but in fact is still
synced to N-1 (and perhaps currently processing transactions from
block N). This can cause unexpected results for many of the
bitcoind-compatible RPC APIs due to their reliance on number of
confirmations, rather than using absolute block heights.