Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: d8c5222474306daae5abd97951c8453f00bad761
      
https://github.com/conformal/btcd/commit/d8c5222474306daae5abd97951c8453f00bad761
  Author: Owain G. Ainsworth <[email protected]>
  Date:   2013-11-06 (Wed, 06 Nov 2013)

  Changed paths:
    M rpcserver.go

  Log Message:
  -----------
  Rework the way we send notifications over the websocket

Redo the datastructures we search so that we only do one lookup per txin and
txout instead of doing a loop per wallet connection.

Don't send spent data on tx notifications, this can be worked out in wallet and
it is expensiveish to calculate. However we DO check upon getting a notification
request if the output is already spent, and in which case we send an immediate
notification to force a rescan.

MinedTxNotfications are handled separately to the connected block messages
largely to enable this to scale rather better.

Tested by jrick (who found one bug i had introduced, thanks!)

Additionally (accidentally squashed in):

Add handlers for all known commands.

We have handlers for all wallet-requiring commands that will return a suitable
error.

Unimplemented commands temporarily return an error stating so.



Reply via email to