-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
put default value '0' for 'accounted' field in block table #533
Comments
and also set default value for 'rewards' field.. |
can you paste the exact logs please? |
i actually solve it my self. i edit block table in mysql and set default value of field 'accounted' and 'reward' to value '0'. and now its work fine. |
I have seen this happen in Lottocoin: 17:06:46 [Error] [HybridStorage] [Lottocoin] An exception occured while adding block; Field 'Accounted' doesn't have a default value |
Blocks are showing up in the daemon, but coinium is not accounting for them. Crap, I dont want to go back to have to use MPOS, but coinium is simply not accounting for ANY block found. Orbitcoin fails with a bad hash #501, lottocoin with the above error. |
I'll be checking the issue. Meanwhile can you set the default value manually using a tool like HeidiSQL. |
seems to only happen when you upgrade from 0.1.5 to 0.2.0 |
I changed it manually, as per the above instructions. Waiting for a new block to see if it worked. This worked for me: use dogecoin; |
So here is how i reproduce this error under windows: manual install CoiniumServ v0.2.3 - Aurora( is there no script btw? )
now everthing seems to work - but solved blocks appear only in csc client, not in coiniumserv: 10/23/2014 11:10:12 +02:00 [Information] [ShareManager] [Casinocoin] Found block [690332] with hash [b8a1c3b8ca45324206815b9f239afbec599f3f63dfc3322b5dc4284ceec1ace1] Change 1mysql-client: Result: Blocks show up in coiniumserv - but now error at payout: 10/23/2014 12:04:02 +02:00 [Error] [HybridStorage] [Casinocoin] An exception occured while committing payment; Field 'Completed' doesn't have a default value Change 2use coin1; now payouts will work! Proper MySQL install script |
@buechling did u upgrade from developer tree to lastest 0.2.x series? |
no, fresh v0.2.3 with new database.. |
the script is here https://github.com/CoiniumServ/CoiniumServ/blob/master/src/CoiniumServ/Persistance/Layers/Hybrid/Migrations/M002Payments.cs#L55 - i'll be fixing the issue. |
Still error for me.. i fetched the newest version from github today.. compiled it.. created new empty database.. then CoiniumServ created tables.. but: 10/30/2014 20:46:48 +01:00 [Information] [ShareManager] [Megacoin] Found block [300709] with hash [cd6d548ada2b651aec60587437e96233d07bfb52b7f964a6462cdbacb5ee522f] |
What does your version table contain? And which version you compiled? |
i am not sure where to look it up.. mysql> SELECT * FROM VERSIONINFO; |
Latest is 0.2.4. |
ah okay i am sorry.. this is offtopic, but how can i get the new verion? i did git clone https://github.com/CoiniumServ/CoiniumServ.git |
just download the zip? |
ah "git pull" is the magical command ^^ ( better than looking up always the newest version ) now i have 0.2.4.14233 , deleted database and created empty database.. mysql> SELECT * FROM versioninfo; but unfortunately, i have the same error: 10/31/2014 10:42:17 +01:00 [Information] [ShareManager] [Fortytwo] Found block [447163] with hash [b97f577e3c19909b658dca7e9c37a46d8cf6f57c738ab83e5e6df3944350d8bf] |
so the error is still there by the way.. workaround:
use coin1; |
server give error when saving blocks in sql table because 'accounted' field not have default value.
The text was updated successfully, but these errors were encountered: