Class: Pochette::Backends::Trendy

Inherits:
Base
  • Object
show all
Defined in:
lib/pochette/backends/trendy.rb

Overview

The Trendy backend delegates calls to Toshi or BitcoinCore backends to list unspent outputs, incoming payments, etcetera. It chooses the backend to use based on its latest block, trying to always use the most up to date one.

Instance Method Summary collapse

Methods inherited from Base

#balances_for, #block_height, #incoming_for, #list_transactions, #list_unspent, #propagate, #pushtx, #verify_signatures

Constructor Details

#initialize(backends) ⇒ Trendy

Returns a new instance of Trendy.



6
7
8
# File 'lib/pochette/backends/trendy.rb', line 6

def initialize(backends)
  @backends = backends
end