Exemplo n.º 1
0
 /**
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return int
  */
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $file = getenv('HOME') . '/.bitcoinphp/bitcoin.ini';
     $config = new IniConfigProvider();
     try {
         $config->loadFile($file);
     } catch (\Exception $e) {
         throw new \RuntimeException('Failed to load config file');
     }
     $db = new Db($config);
     $db->reset();
 }