Bitcoin Forum
July 18, 2024, 02:22:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [CLOSED] Fix bitcoind-ncurses and earn 0.015 BTC  (Read 339 times)
bitpop (OP)
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
February 26, 2016, 01:21:46 AM
Last edit: February 26, 2016, 04:03:57 AM by bitpop
 #1

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 <module>
    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

achow101
Staff
Legendary
*
Offline Offline

Activity: 3458
Merit: 6793


Just writing some code


View Profile WWW
February 26, 2016, 03:08:42 AM
 #2

Here: https://github.com/achow101/bitcoind-ncurses

It should work.

My address is in my profile.

bitpop (OP)
Legendary
*
Offline Offline

Activity: 2912
Merit: 1060



View Profile WWW
February 26, 2016, 03:58:03 AM
 #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.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!