Sha256: d7fd513ff95864f03ec24c6298a1a24d4a38792f640c73c38594e892b19b64c9

Contents?: true

Size: 539 Bytes

Versions: 9

Compression:

Stored size: 539 Bytes

Contents

module Tapyrus
  module Message

    # blocktxn message.
    # https://github.com/bitcoin/bips/blob/master/bip-0152.mediawiki#blocktxn
    class BlockTxn < Base

      COMMAND = 'blocktxn'

      attr_accessor :block_transactions

      def initialize(block_transactions)
        @block_transactions = block_transactions
      end

      def self.parse_from_payload(payload)
        self.new(BlockTransactions.parse_from_payload(payload))
      end

      def to_payload
        block_transactions.to_payload
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tapyrus-0.2.7 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.6 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.5 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.4 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.3 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.2 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.1 lib/tapyrus/message/block_txn.rb
tapyrus-0.2.0 lib/tapyrus/message/block_txn.rb
tapyrus-0.1.0 lib/tapyrus/message/block_txn.rb