Commit graph

33 commits

Author SHA1 Message Date
Tanguy Pruvot
ca999ecfa6 store payout coin id and check algos earnings mismatches 2017-06-19 10:45:50 +02:00
Tanguy Pruvot
5a332328d1 backend: enhance masternodes and decred orphans detection
handle new DASH/SIB masternodes template for the coin reward

for decred orphans, a wallet restart can lead to orphans,
so double check the wallet status with walletinfo
2017-04-30 23:10:26 +02:00
Tanguy Pruvot
09336533c0 decred: handle reggression in orphaned getblock + cleanup
removed confusing/dead code in stratum code (failed attempt to use gbt)
2017-01-17 16:53:10 +01:00
Tanguy Pruvot
f11285087f wallet: update db balances after manual send 2017-01-03 08:16:19 +01:00
Tanguy Pruvot
a4af6b856f cron: update new coin balance fields (from db) 2016-11-25 04:26:58 +01:00
Tanguy Pruvot
ad3f2e2714 backend: move mature_blocks update at a better place 2016-11-24 02:24:11 +01:00
Tanguy Pruvot
81518c4c7d backend: auto stop mining at pow end & fill mature_blocks 2016-11-24 01:19:29 +01:00
Tanguy Pruvot
06c377bb3c backend: more db integrity checks for zpool issues 2016-09-04 08:33:10 +02:00
Tanguy Pruvot
c2374d1420 cron: rework tasks to update blocks status more often
should make immature blocks confirmations more accurate and help
to see which exchange slow down the cron task.

also, orphan outdated blocks (one week)) from the db if the wallet is disabled
2016-06-07 21:41:32 +02:00
Tanguy Pruvot
35220977ef new wallet rpc class to handle martians
add some bitcoin rpc commands to query geth wallet informations (balance,diff,connections..)

todo: handle explorer and transactions list
2016-05-29 09:39:04 +02:00
Tanguy Pruvot
74b80292a6 stratum/decred: link new db coin rpc fields
And use rpcencoding='DCR' for decred checks,
to handle testnet instances or future forks..
2016-04-20 00:13:11 +02:00
Tanguy Pruvot
a338131f28 sql: rename account last_login to last_earning
this column name was confusing, add an index btw...

beware with this commit, need mysql change + memcache restart
2016-04-03 15:19:52 +02:00
Tanguy Pruvot
6950057b17 db: handle custom user donation percents
The setting is set with g=10% in password field

its disabled by default, to do maybe per worker...

prevent negative donation percents
2016-04-02 15:08:43 +02:00
Tanguy Pruvot
71de6d635b db: save blocks worker id for worker stats
Note: need database change!
2016-04-02 15:08:43 +02:00
Tanguy Pruvot
b90ef30df3 small changes 2016-03-24 05:11:08 +01:00
Tanguy Pruvot
ae822976a3 blocks: bug with PoS coins not supporting blocknotifiy
a typo was causing unotified ORB blocks to be detected as stake
2016-03-19 05:20:02 +01:00
Tanguy Pruvot
b392f7d5eb wallet: link the backend blocks ops
+ some controller cleanup...

todo: splash error messages on wallet ops
2016-03-18 03:21:01 +01:00
Tanguy Pruvot
53f9a3d88f decred: enhance check for gettransaction (orphan check)
gettransaction <hex> seems a bit buggy on decred, it can take 30mn

Also, never delete immature and stake blocks on disabled coins,

Happened to me on dcr wallet upgrade, thanks to the backups ;)
2016-03-08 16:59:36 +01:00
Tanguy Pruvot
8db4565b30 decred: blockconfirm enhancement with blocknotify(-dcr)
+ some getwork logs on submit errors (not seen yet)
2016-03-06 16:30:29 +01:00
Tanguy Pruvot
9976490e5c Prevent PoS earnings 2016-03-02 19:32:18 +01:00
Tanguy Pruvot
12986518a7 backend: fix a wrong filter to detect unnotified blocks 2016-03-02 05:03:25 +01:00
Tanguy Pruvot
c2cf1ebbe4 blocks: show block finder and fill missing user diff
diff: same generic algo as the one used in the stratum
      only used on PoW coins without blocknotify feature

finder: show first letters of the user address, require blocknotify
2016-03-01 14:11:32 +01:00
Tanguy Pruvot
3b32d4b987 backend: detect and assign category of PoS blocks
category "stake" while immature, "generated" after

Only shown in the dashboard...
2016-02-27 03:06:19 +01:00
Tanguy Pruvot
75969e2d0b payments: improve layout, add immataure and failed columns 2016-02-19 08:12:18 +01:00
Tanguy Pruvot
e3374b88c2 noblocknofify: add a small delay before declaring it orphan 2016-02-19 00:27:42 +01:00
Tanguy Pruvot
e2f982300c decred: detect generated blocks + stratum fix
backend:
  generated blocks were not auto detected (to double check)

stratum:
  seen on a new setup, if dcrd doesnt have --miningaddr set
  stratum is not able to distribute jobs and was crashing
2016-02-14 14:07:13 +01:00
Tanguy Pruvot
3a26439428 force amount 0 to orphaned blocs 2015-09-18 23:44:06 +02:00
Tanguy Pruvot
deeccfe011 shares: fix for last commit 2015-07-23 10:00:41 +02:00
Tanguy Pruvot
db2efc310d stratum: only accept compatible addresses
add cflag to only allow compatible mining addresses

and set user coinid directly on connect,
Without that, there are wallet conflicts (CHC vs CTO)

assign the right coin job when exchange is disabled

backend: share only the mined coin
2015-07-23 06:00:19 +02:00
Tanguy Pruvot
46b188dfc9 stratum: link hasmasternodes new db field
and fix possible segfault if "payee" string does not exists for masternodes

Also handle MDT masternodes amounts
2015-07-23 05:56:48 +02:00
Tanguy Pruvot
bb31cec957 dos2unix all files, we are on linux
trim them, btw... its important to start on a clean base...
2015-07-12 04:40:50 +02:00
Tanguy Pruvot
d8fe695a46 Some constants for the btc addr, email and site url..
+ missing .gitignore / folder git keepers
2015-07-02 21:17:04 +02:00
root
b5a202e155 init 2015-07-02 20:58:45 +02:00