Commit graph

30 commits

Author SHA1 Message Date
Tanguy Pruvot
0bf982da95 sql: add hasgetinfo and no_explorer fields to coins table
wallets without getinfo will be handled in a later commit...

ps: remember to restart memcached service after the db change..
2018-02-02 06:03:07 +01:00
Tanguy Pruvot
41821cee93 sql: also add a stratum start time column
time column is refreshed at regular interval by the process
2018-01-01 12:58:46 +01:00
Tanguy Pruvot
31163c3933 sql: prepare new stratums fields for multiple instances
will be used to show the right pid/port of one instance,
and add some stats to avoid users to use full ones...
2018-01-01 11:47:37 +01:00
Tanguy Pruvot
cbe55a3a84 Squashed commit for segwit support:
commit c59abe5d203fabdabcca81ff5f9c6ff133cfae3b
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Tue Nov 28 11:13:52 2017 +0100

    segwit: show a segwit icon on blocks history

    + remove some inline styles...

commit b4a8639370e6837ebc5a2047e7c334e9f931abfc
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Tue Nov 28 09:55:40 2017 +0100

    segwit: cleanup + masternode case

    tested ok with BSD (block 400996), and with real BTX segwit txs (block 90958)

    also ok on VTC and GRS

commit 926dbd11757ebff7f7d4930266de9b9061c8ab16
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Sat Nov 25 18:41:01 2017 +0100

    sql: add segwit fields, and ui config

    and fill block segwit field if it contains segwit txs,
    an icon is added in the dashboard "last blocks" for these blocks

commit 0b13bf55e9dd1d2229d188f0f8382b27642b20da
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Sat Nov 25 13:47:20 2017 +0100

    segwit: include commitment in coinbase + .conf toggle

    tested ok on BTX, GRS and VTC with normal txs, but the commitment merkle hash maybe need some more love...

    so, to prevent useless bigger blocks, only generate segwit commitment if a segwit tx is present in mempool

    to check with real segwit txs... not seen any yet..

commit b508bc87943d9e426cda994c2f53c16c11e8d4c3
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Thu Mar 2 11:18:34 2017 +0100

    segwit: prepare the witness data, but disabled

    need more test, may affect the coinbase merkle and the miners...

commit 19bd3a83b9ddddd8b5ed4b7a1bdf8cf8c233e346
Author: Tanguy Pruvot <tanguy.pruvot@gmail.com>
Date:   Thu Mar 2 10:30:29 2017 +0100

    stratum: handle and auto toggle segwit if supported
2017-11-28 11:55:20 +01:00
Tanguy Pruvot
bd7bb9b77b sql: bookmarks creation issue with recent mysql 2017-10-09 11:26:27 +02:00
Tanguy Pruvot
953bdc95d8 sql: set default value on triggers timestamps 2017-09-14 09:07:12 +02:00
Tanguy Pruvot
4c7cd95fa4 sql: new payouts and account fields 2017-06-14 05:43:35 +02:00
Tanguy Pruvot
9cff83ff49 sql: add unique index to prevent double inserts 2017-04-01 23:54:53 +02:00
Tanguy Pruvot
81a5552386 sql/benchs: add new columns to store the plimit and real freqs
also drop the mem amount column, unused and kinda useless...
2017-02-05 12:50:36 +01:00
Tanguy Pruvot
0b4818c36e sql: new coins fields for stratum/pow settings
Also some more fields to cache the available balance (to allow triggers)
2016-11-24 00:10:29 +01:00
Tanguy Pruvot
a9eaf75270 sql: add chip table to analyse benchmark results 2016-06-04 11:02:09 +02:00
Tanguy Pruvot
0f6e93f1ca db: prepare a notification rules table 2016-06-01 14:33:11 +02:00
Tanguy Pruvot
ad89a55256 sql: add bookmarks table and link to wallet 2016-05-24 00:34:13 +02:00
Tanguy Pruvot
ed3cd5fb69 db/benchmarks: allow ccminer to report device stats
user password should contain "stats", made for ccminer 1.7.6+

will see to allow a special bench "test" account to allow devs to
easily test the stratum and fill benchmarks, for the moment, its
enabled while mining with the -p stats password option.
2016-05-15 18:46:16 +02:00
Tanguy Pruvot
a7bae2ddc7 sql: new coin db fields multialgos watch stake 2016-05-11 20:28:52 +02:00
Tanguy Pruvot
7e0c9f69ce sql: settings table for exchange variables
only applied to bittrex as sample, default values are kept if unset.
2016-04-27 09:58:32 +02:00
Tanguy Pruvot
bf7fc3534f sql: keep btc and user defined markets history
will allow to do internal graphes and compute better exchange orders

Also track in the new table a (BTC/EUR) alternative, from kraken public api
this second currency should be user definable later.
2016-04-24 10:23:21 +02:00
Tanguy Pruvot
baf1a23db8 db: refresh the initial sql dump 2016-04-03 16:31:59 +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
2a23f05b8f coins: change default order to creation date, desc
previous order by id was not perfect in case of importation from other databases
2016-04-03 15:19:36 +02:00
Tanguy Pruvot
b43fa9236b coins: add link_site field
don't forget to restart memcached service to refresh the db structure
2016-04-02 15:11:54 +02:00
Tanguy Pruvot
3498e311da sql: add some new fields to the coin database 2016-04-02 15:11:54 +02:00
Tanguy Pruvot
f72ce04be1 markets: new fields + balances update 2016-04-02 15:11:53 +02:00
Tanguy Pruvot
553c920cab shares: store (temporary) submitted work diff for future stats...
PS: this table is only used for current round (until a bloc is found)

also log a part of the submitted shares by default, to show activity
2016-04-02 15:08:43 +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
2022170777 db: save payout errors 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
55c3d756b0 coindb: allow lables import from a json file
sample file included in sql/ folder extracted from main exchanges
2015-09-20 07:07:47 +02:00
Tanguy Pruvot
b8adb72034 coin: show a sample config in form + new fields 2015-07-23 05:56:50 +02:00
Tanguy Pruvot
1824eb7d64 sample database change, coins hasmasternodes 2015-07-23 05:56:49 +02:00