|
|
@ -8,7 +8,7 @@ import ( |
|
|
|
type UTXOPool struct { |
|
|
|
type UTXOPool struct { |
|
|
|
// Mapping from address to a map of transaction id to that balance.
|
|
|
|
// Mapping from address to a map of transaction id to that balance.
|
|
|
|
// The assumption here is that one address only appears once output array in a transaction.
|
|
|
|
// The assumption here is that one address only appears once output array in a transaction.
|
|
|
|
utxo map[string]map[string]int |
|
|
|
utxo map[string]map[string]map[int]int |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// VerifyTransactions verifies if a list of transactions valid.
|
|
|
|
// VerifyTransactions verifies if a list of transactions valid.
|
|
|
|