Module: BSV::Wallet::Interface::UTXOPool

Included in:
LocalPool
Defined in:
lib/bsv/wallet/interface/utxo_pool.rb

Overview

Duck-typed UTXO pool interface for managing pre-funded outputs.

Include this module in pool implementations and override all instance methods that raise NotImplementedError.

Constant Summary collapse

MAX_RETRIES =
3

Instance Method Summary collapse

Instance Method Details

#acquireObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/bsv/wallet/interface/utxo_pool.rb', line 13

def acquire
  raise NotImplementedError, "#{self.class}#acquire not implemented"
end

#release(_outpoint) ⇒ Object

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/bsv/wallet/interface/utxo_pool.rb', line 17

def release(_outpoint)
  raise NotImplementedError, "#{self.class}#release not implemented"
end

#shutdownObject

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/bsv/wallet/interface/utxo_pool.rb', line 25

def shutdown
  raise NotImplementedError, "#{self.class}#shutdown not implemented"
end

#statusObject

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/bsv/wallet/interface/utxo_pool.rb', line 21

def status
  raise NotImplementedError, "#{self.class}#status not implemented"
end