mirror of https://github.com/poanetwork/gecko.git
error check and go fmt
This commit is contained in:
parent
628856992f
commit
737087f0ca
|
@ -92,7 +92,9 @@ func (cr *codecRegistry) RegisterType(val interface{}) error {
|
||||||
return cr.codec.RegisterType(val)
|
return cr.codec.RegisterType(val)
|
||||||
}
|
}
|
||||||
func (cr *codecRegistry) Marshal(val interface{}) ([]byte, error) { return cr.codec.Marshal(val) }
|
func (cr *codecRegistry) Marshal(val interface{}) ([]byte, error) { return cr.codec.Marshal(val) }
|
||||||
func (cr *codecRegistry) Unmarshal(b []byte, val interface{}) error { return cr.codec.Unmarshal(b, val) }
|
func (cr *codecRegistry) Unmarshal(b []byte, val interface{}) error {
|
||||||
|
return cr.codec.Unmarshal(b, val)
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
******************************************************************************
|
******************************************************************************
|
||||||
|
@ -456,7 +458,10 @@ func (vm *VM) parseTx(b []byte) (*UniqueTx, error) {
|
||||||
if err := vm.state.SetTx(tx.ID(), tx.Tx); err != nil {
|
if err := vm.state.SetTx(tx.ID(), tx.Tx); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
tx.setStatus(choices.Processing)
|
|
||||||
|
if err := tx.setStatus(choices.Processing); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return tx, nil
|
return tx, nil
|
||||||
|
|
Loading…
Reference in New Issue