Refresh RPC time calls (60 seconds in bfgminer 5.4.2)
you call CreateNewBlock (): every 60 seconds, where can I change this time in the source code, for example to 20 seconds or 5 seconds?
where is the line in source code? thanks.
bfgminer version 5.4.2 - Started: [2018-11-13 14:15:54] - [ 0 days 00:07:18]
[M]anage devices [P]ool management [ S ]ettings [D]isplay options [H]elp [Q]uit
Pool 0: 127.0.0.1 Diff:7.18T + GBT LU:[14:22:14] User:aaabbb
Block #549929: ...99232abf Diff:7.18T (51.43E) Started: [14:18:14] I: 0.00 BTC/hr
ST:3 F:0 NB:2 AS:0 BW:[ 26/ 0kB/s] E:0.00 BS:954
1 | 1.54/ 1.62/ 1.82Gh/s | A:0 R:0+0(none) HW:0/none
---------------------------------------------------------------------------------------------------------------------------------------
AMU 0: | 1.54/ 1.62/ 1.81Gh/s | A:0 R:0+0(none) HW:0/none
---------------------------------------------------------------------------------------------------------------------------------------
[2018-11-13 14:15:53] Started bfgminer 5.4.2
[2018-11-13 14:15:53] Added local bitcoin RPC server on port 8332 as pool 1
[2018-11-13 14:15:53] Probing for an alive pool
[2018-11-13 14:15:53] Network difficulty changed to 7.18T (51.43E)
[2018-11-13 14:15:53] Long-polling activated for
http://127.0.0.1:8332 (getblocktemplate)
[2018-11-13 14:15:53] Pool 0
http://127.0.0.1:8332 alive
[2018-11-13 14:15:53] Long-polling activated for
http://localhost:8332/#allblocks (getblocktemplate)
[2018-11-13 14:15:53] Pool 1
http://localhost:8332/#allblocks alive
[2018-11-13 14:15:53] Pool 1
http://localhost:8332/#allblocks alive
[2018-11-13 14:18:14] Longpoll from pool 0 detected new block
bitcoind:
2018-11-13T14:13:54Z UpdateTip: new best=00000000000000000010339634e841b8755e84059406a5137e52620c3386041e height=549927 version=0x20000000 log2_work=90.008634 tx=356423312 date='2018-11-13T14:13:16Z' progress=1.000000 cache=8.4MiB(61833txo) warning='23 of last 100 blocks have unexpected version'
2018-11-13T14:13:54Z CreateNewBlock(): block weight: 682540 txs: 417 fees: 1545879 sigops 4064
2018-11-13T14:15:53Z CreateNewBlock(): block weight: 1171664 txs: 697 fees: 3653730 sigops 8448
2018-11-13T14:16:53Z CreateNewBlock(): block weight: 1430144 txs: 819 fees: 5232557 sigops 9512
2018-11-13T14:17:53Z CreateNewBlock(): block weight: 1730492 txs: 974 fees: 6501427 sigops 11764
2018-11-13T14:18:14Z UpdateTip: new best=0000000000000000001486f0ebea5708e72f09aa013a7b07aaab842199232abf height=549928 version=0x20000000 log2_work=90.00867 tx=356425155 date='2018-11-13T14:17:58Z' progress=1.000000 cache=9.2MiB(68436txo) warning='23 of last 100 blocks have unexpected version'
2018-11-13T14:18:14Z CreateNewBlock(): block weight: 467852 txs: 249 fees: 778233 sigops 3420
2018-11-13T14:19:14Z CreateNewBlock(): block weight: 646524 txs: 374 fees: 2466215 sigops 4496
2018-11-13T14:20:14Z CreateNewBlock(): block weight: 862828 txs: 519 fees: 3186790 sigops 5812
2018-11-13T14:21:14Z CreateNewBlock(): block weight: 1086864 txs: 647 fees: 4377155 sigops 6748
2018-11-13T14:22:14Z CreateNewBlock(): block weight: 2111864 txs: 792 fees: 8931808 sigops 7888
2018-11-13T14:23:14Z CreateNewBlock(): block weight: 2249252 txs: 904 fees: 9530958 sigops 8560
^^^^