Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 9b166b387665a2b70c6971fbb650b9a08074ec27
https://github.com/conformal/btcd/commit/9b166b387665a2b70c6971fbb650b9a08074ec27
Author: Dave Collins <[email protected]>
Date: 2013-12-31 (Tue, 31 Dec 2013)
Changed paths:
M rpcserver.go
M rpcwebsocket.go
Log Message:
-----------
Remove wallet notifications chan from std commands.
This commit cleans up the standard RPC command hanlding a bit by removing
the websocket specific notification channel from the handlers. This was
previously required because the sendrawtransaction, when called from a
websocket enabled connection, needs to add a notification for when the
transaction is mined.
This commit modifies that to instead implement a websocket extended
version of sendrawtransaction which invokes the standard handler and adds
the notification. In addition, the main send was modified to first look
if the command has a websocket specific handler first, and then falls back
to standard commands, rather than the previous approach of first checking
for a standard command and falling through to websocket commands. This
essentially allows websockets connections to extend commands with the same
name with additional functionality such as what was done in this commit.
Commit: 835cee229a49db9f9ac708d7a259ed62d981b23a
https://github.com/conformal/btcd/commit/835cee229a49db9f9ac708d7a259ed62d981b23a
Author: Dave Collins <[email protected]>
Date: 2013-12-31 (Tue, 31 Dec 2013)
Changed paths:
M rpcserver.go
M rpcwebsocket.go
Log Message:
-----------
Move RPC handler maps near the top of file.
Since the command to handler mappings are the most often modified and
referenced code in rpcserver.go and rpcwebsocket.go, move them near the
top of their respective files.
Compare: https://github.com/conformal/btcd/compare/5ad6d543d6b3...835cee229a49