コード例 #1
0
ファイル: hashcache.go プロジェクト: Roasbeef/btcd
// AddSigHashes computes, then adds the partial sighashes for the passed
// transaction.
func (h *HashCache) AddSigHashes(tx *wire.MsgTx) {
	h.Lock()
	defer h.Unlock()

	sigHashes := NewTxSigHashes(tx)

	txid := tx.TxHash()
	h.sigHashes[txid] = sigHashes

	return
}