mirror of
https://github.com/LBRYFoundation/lbcd.git
synced 2025-08-23 17:47:24 +00:00
txscript: Trivial typo fixes.
This commit is contained in:
parent
8c883d1fca
commit
63d1550d42
1 changed files with 5 additions and 5 deletions
|
@ -62,7 +62,7 @@ func TestHashCacheAddContainsHashes(t *testing.T) {
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// First, well generate 10 random transactions for use within our
|
// First, we'll generate 10 random transactions for use within our
|
||||||
// tests.
|
// tests.
|
||||||
const numTxns = 10
|
const numTxns = 10
|
||||||
txns := make([]*wire.MsgTx, numTxns)
|
txns := make([]*wire.MsgTx, numTxns)
|
||||||
|
@ -104,8 +104,8 @@ func TestHashCacheAddContainsHashes(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestHashCacheAddGet tests that the sighahes for a particular transaction
|
// TestHashCacheAddGet tests that the sighashes for a particular transaction
|
||||||
// care properly retrieved by the GetSigHashes function.
|
// are properly retrieved by the GetSigHashes function.
|
||||||
func TestHashCacheAddGet(t *testing.T) {
|
func TestHashCacheAddGet(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
|
@ -170,8 +170,8 @@ func TestHashCachePurge(t *testing.T) {
|
||||||
cache.PurgeSigHashes(&txid)
|
cache.PurgeSigHashes(&txid)
|
||||||
}
|
}
|
||||||
|
|
||||||
// At this point, non of the transaction inserted into the hash cache
|
// At this point, none of the transactions inserted into the hash cache
|
||||||
// should be found within the ache.
|
// should be found within the cache.
|
||||||
for _, tx := range txns {
|
for _, tx := range txns {
|
||||||
txid := tx.TxHash()
|
txid := tx.TxHash()
|
||||||
if ok := cache.ContainsHashes(&txid); ok {
|
if ok := cache.ContainsHashes(&txid); ok {
|
||||||
|
|
Loading…
Add table
Reference in a new issue