Open chinitadelrey opened 6 years ago
I did a little more digging and think the problem could be in *MsgTx:
btcsuite/btcd/wire/msgtx.go:892:898 ==>
func NewMsgTx(version int32) *MsgTx {
return &MsgTx{
Version: version,
TxIn: make([]*TxIn, 0, defaultTxInOutAlloc),
TxOut: make([]*TxOut, 0, defaultTxInOutAlloc),
}}
btcsuite/btcd/wire/msgtx.go:289:294 ==>
type MsgTx struct {
Version int32
TxIn []*TxIn
TxOut []*TxOut
LockTime uint32 // not referenced in NewMsgTx above
}
Does that look right? I think it just implies that LockTime is allocated to zero under NewMsgTx?
I've posted it up in the original dependency as well -- https://github.com/btcsuite/btcd/issues/1173
Error while compiling. I can't figure out what's wrong. 1) txns.Get returns three values, but why does TxnDB want to force it into 2 only, when the other files clearly use 3 variables?! 2) same for the Put function. defined with 5 arguments and then the error says there are not enough... when it looks alright.
I'm new to Go. Help me understand what's wrong here?
error message:
Here's the relevant code. :