|
|
@ -31,10 +31,10 @@ type txdata struct { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (d *txdata) CopyFrom(d2 *txdata) { |
|
|
|
func (d *txdata) CopyFrom(d2 *txdata) { |
|
|
|
|
|
|
|
d.Directive = d2.Directive |
|
|
|
d.AccountNonce = d2.AccountNonce |
|
|
|
d.AccountNonce = d2.AccountNonce |
|
|
|
d.Price = new(big.Int).Set(d2.Price) |
|
|
|
d.Price = new(big.Int).Set(d2.Price) |
|
|
|
d.GasLimit = d2.GasLimit |
|
|
|
d.GasLimit = d2.GasLimit |
|
|
|
// TODO: add code to protect crashing
|
|
|
|
|
|
|
|
// This is workaround, direct RLP encoding/decoding not work
|
|
|
|
// This is workaround, direct RLP encoding/decoding not work
|
|
|
|
if d2.StakeMsg == nil { |
|
|
|
if d2.StakeMsg == nil { |
|
|
|
utils.Logger().Debug().Msg("[CopyFrom] d2.StakeMsg is nil") |
|
|
|
utils.Logger().Debug().Msg("[CopyFrom] d2.StakeMsg is nil") |
|
|
|