Author

Topic: [CLOSED] Fix bitcoind-ncurses and earn 0.015 BTC (Read 336 times)

legendary
Activity: 2912
Merit: 1060
February 25, 2016, 11:58:03 PM
#3
Sent!

Crazy just 2 letters https://github.com/achow101/bitcoind-ncurses/commit/5207a5d7e844ad84b3c4890012760a1ed4fd825e

 I'm guessing it's the large diff number. Now the decimal is too long but it works.
staff
Activity: 3374
Merit: 6530
Just writing some code
Here: https://github.com/achow101/bitcoind-ncurses

It should work.

My address is in my profile.
legendary
Activity: 2912
Merit: 1060
It's all I use to monitor my nodes and 0.12 broke it! Help Sad

I will pay 0.015BTC if you post a fix here, I don't think he's around to accept a PR but post one if you can or fork.

https://github.com/azeteki/bitcoind-ncurses

Traceback (most recent call last):
  File "bitcoind-ncurses/main.py", line 59, in
    interface.main(interface_queue, rpc_queue)
  File "/root/bitcoind-ncurses/interface.py", line 79, in main
    error_message = loop(state, window, interface_queue, rpc_queue)
  File "/root/bitcoind-ncurses/interface.py", line 58, in loop
    error_message = process.queue(state, window, interface_queue)
  File "/root/bitcoind-ncurses/process.py", line 253, in queue
    elif 'getnetworkhashps' in s: getnetworkhashps(s, state, window)
  File "/root/bitcoind-ncurses/process.py", line 78, in getnetworkhashps
    monitor.draw_window(state, window)
  File "/root/bitcoind-ncurses/monitor.py", line 125, in draw_window
    window.addstr(index, 1, "Est (" + str(block_avg).rjust(4) + "): ~" + "{:,d}".format(nextdiff))
  File "/usr/lib/python2.7/decimal.py", line 3662, in __format__
    spec = _parse_format_specifier(specifier, _localeconv=_localeconv)
  File "/usr/lib/python2.7/decimal.py", line 5978, in _parse_format_specifier
    raise ValueError("Invalid format specifier: " + format_spec)
ValueError: Invalid format specifier: ,d
Jump to: