|
|
@ -178,11 +178,11 @@ func (s *Service) createRawStakingMessage() []byte { |
|
|
|
tx := types.NewTransaction( |
|
|
|
tx := types.NewTransaction( |
|
|
|
stakingInfo.Nonce, |
|
|
|
stakingInfo.Nonce, |
|
|
|
toAddress, |
|
|
|
toAddress, |
|
|
|
0, // beacon chain.
|
|
|
|
0, |
|
|
|
big.NewInt(s.stakingAmount), |
|
|
|
big.NewInt(s.stakingAmount), |
|
|
|
params.TxGas*10, // hard-code
|
|
|
|
params.TxGas*10, |
|
|
|
nil, // pick some predefined gas price.
|
|
|
|
nil, |
|
|
|
common.FromHex("0xd0e30db0")) // Refer to Node.DepositFuncSignature
|
|
|
|
common.FromHex("0xd0e30db0")) |
|
|
|
|
|
|
|
|
|
|
|
if signedTx, err := types.SignTx(tx, types.HomesteadSigner{}, s.accountKey); err == nil { |
|
|
|
if signedTx, err := types.SignTx(tx, types.HomesteadSigner{}, s.accountKey); err == nil { |
|
|
|
ts := types.Transactions{signedTx} |
|
|
|
ts := types.Transactions{signedTx} |
|
|
|