Con Kolivas
5a0c648b59
Upstream block solve information on remote trusted servers to be added to ckdb.
8 years ago
Con Kolivas
aa121dbce2
Upstream, parse and send to ckdb trusted remote server share errors.
8 years ago
Con Kolivas
1eb058a0e6
Use a separate hashlist and mapped id for remote workinfos and remap it when receiving a share, submitting it to ckdb.
8 years ago
Con Kolivas
96a3283020
Submit remote parsed shares to ckdb.
8 years ago
Con Kolivas
a5f6a8ca32
Reuse add_node_txn instead of a separate parse_remote_txn to avoid submitting transactions if we've already seen them.
8 years ago
Con Kolivas
17d9c837d1
Parse and act upon upstream auth responses in trusted mode.
8 years ago
Con Kolivas
eab4762c34
Rename remote trusted server's bool to trusted.
8 years ago
Con Kolivas
5bf2d387ec
Forward auths to upstream pool in remote trusted mode, with a view to checking responses and using that instead of local auth.
8 years ago
Con Kolivas
e011d17321
Upstream messages directly from stratifier to connector in trusted mode.
8 years ago
Con Kolivas
d543888404
Send workinfos from remote trusted nodes upstream, giving them a new local id to maintain sequential workinfo ids for ckdb compatibility.
8 years ago
Con Kolivas
d9e5cf03f1
Send transactions up and downstream in trusted mode to be submitted to the local btcd.
8 years ago
Con Kolivas
c7d8b774db
Avoid dereference crash on startup with instantly connecting miners.
8 years ago
Con Kolivas
b98ac8a2f0
Change starting session id on each startup.
8 years ago
Con Kolivas
e9a856cf97
Fix uptime
8 years ago
Con Kolivas
2ec6736f99
Calculate hashrate in diff shares per second per proxy by the generator and return it with proxystats.
8 years ago
Con Kolivas
f2a3ee90c7
Implement get_uptime in stratifier.
8 years ago
Con Kolivas
193d0f22e8
Use the best userproxy headroom only to determine if we need to recruit more subproxies.
8 years ago
Con Kolivas
559867ab9d
Avoid potential dereference in recruit_best_userproxy
8 years ago
Con Kolivas
9963536076
Fix memleak in reap_proxies for parent proxy not emptying its subproxy hashtable.
8 years ago
Con Kolivas
4108456ff4
Fix memory leaks on failed api messages.
8 years ago
Con Kolivas
710e316577
Clear proxy workbases on freeing the proxy.
8 years ago
Con Kolivas
3471b299c0
Delete any shares in a proxy's share hashtable on freeing it.
8 years ago
Con Kolivas
3dfe7b95e3
Fix potential memleak when stratum_add_send is unable to send to a queue.
8 years ago
Con Kolivas
f77458fa33
Remove inefficient up and downstreaming of blocks in trusted mode.
9 years ago
Con Kolivas
a23326593e
Set new proxy priority to very high until the fields are filled in or it may be falsely elevated initially
9 years ago
Con Kolivas
a58e4ee46a
Better handle deleted global proxies and switch more rapidly
9 years ago
Con Kolivas
cc6e431b13
Properly handle userproxy priorities
9 years ago
Con Kolivas
f61d839b30
Fix missing initial stratum notify in proxy mode
9 years ago
Con Kolivas
ddd58fa778
Make nodes submit upstream transactions to the local btcd to speed up blocksolve processing
9 years ago
Con Kolivas
b517b3b065
Logic error in choosing best proxy
9 years ago
Con Kolivas
526a8f3666
Fix incorrect size added during cleanup
9 years ago
Con Kolivas
2aedae4379
Style and safecmp changes to segwit commits.
9 years ago
Con Kolivas
50c1e00509
Remove unused var
9 years ago
Cory Fields
29403a2c1c
Add BIP145 segwit support
...
Transaction "hash" and "txid" now have specific meanings. "txid" represents the
hashed tx without witness data. This is used to form the in-header merkle root
as usual.
"hash" is the tx including witness data, if any. If there is no witness data,
hash == txid.
if the "segwit" rule is active, hashes are combined into a merkle tree, and the
root is inserted as part of the scriptPubKey in a coinbase txout.
See BIP141 for specifics.
9 years ago
Con Kolivas
ded126d599
Relax the array size check in shares to at least large enough
9 years ago
Con Kolivas
ead718a5b5
Rework the user and worker examining loops in statsupdate to not hold the instance lock
9 years ago
Con Kolivas
44b03fcf29
Rework client examination loop in statsupdate
9 years ago
Con Kolivas
16efbaff3f
Examine clients outside of lock in statsupdate to minimise lock hold time
9 years ago
Con Kolivas
c2be459e76
Inline ref_instance_by_id to be able to determine the caller of it for lock debugging
9 years ago
ckolivas
aa4e2790e9
Drop and regain lock in statsupdate to minimise lock contention
9 years ago
Con Kolivas
ee17b24b9b
Differentiate a dead proxy from a deleted one
9 years ago
Con Kolivas
14c8a3a125
Add quiet mode option which suppresses throbber
9 years ago
Con Kolivas
a5d526a67d
Delete parent proxies once all their subproxies are dead
9 years ago
Con Kolivas
54ccb02ad7
Add client address and useragent to each share
9 years ago
Con Kolivas
632cae501e
Respect nonce2length request in proxy mode as upper limit, giving a warning if we're unable to meet it
9 years ago
Con Kolivas
685af50a7e
Add identifier for clients in the stratifier to know what node/passthrough they belong to
9 years ago
Con Kolivas
7a06c4f009
Accept only old diffs until the diff change job id
9 years ago
Con Kolivas
f636f9eef0
Set old diff on changing mindiff or sugget diff
9 years ago
Con Kolivas
bfe83a46b3
Tidy up and make clear clamping process in add_submit
9 years ago
Con Kolivas
505dc002d9
Handle suggest_diff separately from worker mindiff when authorising
9 years ago