|
|
@ -82,6 +82,7 @@ func (node *Node) proposeNewBlock() (*types.Block, error) { |
|
|
|
// Update worker's current header and state data in preparation to propose/process new transactions
|
|
|
|
// Update worker's current header and state data in preparation to propose/process new transactions
|
|
|
|
coinbase := node.Consensus.SelfAddress |
|
|
|
coinbase := node.Consensus.SelfAddress |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utils.Logger().Info().Msg("11111111111") |
|
|
|
// Prepare transactions including staking transactions\
|
|
|
|
// Prepare transactions including staking transactions\
|
|
|
|
pending, err := node.TxPool.Pending() |
|
|
|
pending, err := node.TxPool.Pending() |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -89,6 +90,7 @@ func (node *Node) proposeNewBlock() (*types.Block, error) { |
|
|
|
return nil, err |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utils.Logger().Info().Msg("222222222222") |
|
|
|
// TODO: integrate staking transaction into tx pool
|
|
|
|
// TODO: integrate staking transaction into tx pool
|
|
|
|
pendingStakingTransactions := types2.StakingTransactions{} |
|
|
|
pendingStakingTransactions := types2.StakingTransactions{} |
|
|
|
for _, tx := range node.pendingStakingTransactions { |
|
|
|
for _, tx := range node.pendingStakingTransactions { |
|
|
@ -102,6 +104,7 @@ func (node *Node) proposeNewBlock() (*types.Block, error) { |
|
|
|
return nil, err |
|
|
|
return nil, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utils.Logger().Info().Msg("33333333333333") |
|
|
|
// Prepare cross shard transaction receipts
|
|
|
|
// Prepare cross shard transaction receipts
|
|
|
|
receiptsList := node.proposeReceiptsProof() |
|
|
|
receiptsList := node.proposeReceiptsProof() |
|
|
|
if len(receiptsList) != 0 { |
|
|
|
if len(receiptsList) != 0 { |
|
|
|