parent
28d329e23a
commit
c358fc754d
@ -0,0 +1,8 @@ |
||||
package blockchain |
||||
|
||||
// UTXOPool stores transactions and balance associated with each address.
|
||||
type UTXOPool struct { |
||||
// 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.
|
||||
utxo map[string]map[string]int |
||||
} |
Loading…
Reference in new issue