Sha256: 67ae3a5e406077da072e10c8971ddf01a7f137db81ae225171272daaf433befe

Contents?: true

Size: 494 Bytes

Versions: 24

Compression:

Stored size: 494 Bytes

Contents

module Bitcoin
  module Message

    # feefilter message
    # https://bitcoin.org/en/developer-reference#feefilter
    class FeeFilter < Base

      COMMAND = 'feefilter'

      # The fee rate (in satoshis per kilobyte)
      attr_accessor :fee_rate

      def initialize(fee_rate)
        @fee_rate = fee_rate
      end

      def self.parse_from_payload(payload)
        new(payload.unpack('Q').first)
      end

      def to_payload
        [fee_rate].pack('Q')
      end

    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
bitcoinrb-0.5.0 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.4.0 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.3.2 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.3.1 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.3.0 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.9 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.8 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.7 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.6 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.5 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.4 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.2 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.1 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.2.0 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.1.9 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.1.8 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.1.7 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.1.6 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.1.5 lib/bitcoin/message/fee_filter.rb
bitcoinrb-0.1.4 lib/bitcoin/message/fee_filter.rb