/** * @param BufferInterface $hash * @return BlockInterface */ public function fetch(BufferInterface $hash) { return $this->db->fetchBlock($hash); }
/** * @param BufferInterface $hash * @return \BitWasp\Bitcoin\Block\Block */ public function fetchBlock(BufferInterface $hash) { echo __FUNCTION__ . PHP_EOL; return $this->db->fetchBlock($hash); }