Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: e76fada2d200e026fed8ca24f0a7e2fa1595be97
      
https://github.com/conformal/btcd/commit/e76fada2d200e026fed8ca24f0a7e2fa1595be97
  Author: Dave Collins <[email protected]>
  Date:   2013-10-30 (Wed, 30 Oct 2013)

  Changed paths:
    M rpcserver.go

  Log Message:
  -----------
  Optimize NotifyNewTxListener.

Looking up transactions from the database is an expensive operation.
This commit modifies the NotifyNewTxListener code to simply iterate the
transactions in the block instead of looking them up from the db.

Currently the wallet code needs a spent flag which ultimately shouldn't be
required.  For now, the spent data is simply created on the fly which is
still significantly faster than doing database transaction lookups.

Closes #24.



Reply via email to