Class: Pochette::Backends::Trendy
- 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
-
#initialize(backends) ⇒ Trendy
constructor
A new instance of Trendy.
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 |