interface Openclerk\Currencies \ DifficultyCurrency

All implemented interfaces:
Currency
All known implementing classes:
Bitcoin, Blackcoin, Darkcoin, Digitalcoin, Dogecoin, Feathercoin, Hobonickels, Ixcoin, Litecoin, Megacoin, Namecoin, Netcoin, Novacoin, NuBits, NuShares, Peercoin, Primecoin, Reddcoin, Terracoin, Vericoin, Vertcoin, Viacoin, Worldcoin

A "DifficultyCurrency" is a currency which has an associated difficulty, and we can get the current difficulty of that currency.

This is the base interface; other interfaces will provide additional functionality as necessary. (from Currency)


Method Summary

Name Description
getDifficulty(Logger $logger) Get the most recent difficulty for this currency. This method blocks until the balance has been obtained.

public function getDifficulty(Logger $logger)

Get the most recent difficulty for this currency. This method blocks until the balance has been obtained.

Parameters:
$logger - a logger to log info/error messages to
Throws:
DifficultyException if something happened and the block count could not be obtained