}
//u.ValidHeight > 0 means coinbase utxo
- if u.ValidHeight > 0 && u.ValidHeight > re.c.Height() {
+ if u.ValidHeight > 0 && u.ValidHeight > re.c.BestBlockHeight() {
return nil, errors.WithDetail(ErrMatchUTXO, "this coinbase utxo is immature")
}
db: re.db,
src: src,
reserved: make(map[bc.Hash]uint64),
- currentHeight: re.c.Height,
+ currentHeight: re.c.BestBlockHeight,
}
re.sources[src] = sr
return sr