// 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 }