jhoenicke / mempool

Bitcoin Mempool Statistics
GNU Affero General Public License v3.0
331 stars 91 forks source link

Illegal division by zero at mempool-sql.pl line 30 #38

Closed coretechs closed 5 years ago

coretechs commented 5 years ago

Trying to get this running using Bitcoin v0.17 and I keep running into the following error:

Illegal division by zero at mempool-sql.pl line 30, <> line 8.

The getrawmempool RPC call in v0.17 returns a new property "fees" that appears to have broken the mempool-sql.pl script. The script runs without error if the "fees" property is removed from the output.

jarole commented 5 years ago

hi @coretechs . How did you remove fee from the output?

jhoenicke commented 5 years ago

I have to look how to make the parser more robust or use a perl JSON library and see if the overhead is okay. We could also use jq to filter the input.