Class: Reth::ETHProtocol::Transactions
- Inherits:
-
DEVp2p::Command
- Object
- DEVp2p::Command
- Reth::ETHProtocol::Transactions
- Defined in:
- lib/reth/eth_protocol.rb
Overview
Specify (a) transaction(s) that the peer should make sure is included on its transaction queue.
The items in the list (following the first item 0x12) are transactions in the format described in the main Ethereum specification. Nodes must not resend the same transaction to a peer in the same session. This packet must contain at least one (new) transaction.
Class Method Summary collapse
Class Method Details
.decode_payload(rlp_data) ⇒ Object
79 80 81 82 83 84 85 86 |
# File 'lib/reth/eth_protocol.rb', line 79 def self.decode_payload(rlp_data) txs = [] RLP.decode_lazy(rlp_data).each_with_index do |tx, i| txs.push Transaction.deserialize tx sleep 0.0001 if i % 10 == 0 end txs end |