Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
SQL plugin #3882
When I run below command, "eosio" accounts spends '1.0 BOT token' for tester user, to give cpu,net,ram bandwidth.
After running command with 'cleos get account eosio', I can get precise balance. But When I query balance from mysql(using sql_db_plugin) balance is not correct.
it looks like your 'sql_db_plugin" plugin doesn't catch 'cleos system' command.
Do you have plan to fix this? Or am I doing something wrong?
Some sql error exists in the nodeos log, and the nodeos force quit. Yet I have to delete blocks file of EOS blockchain and eos database in MySQL to force resync, how to avoid and solve this problem?
When sync to
terminate called after throwing an instance of 'soci::mysql_soci_error' what(): Out of range value for column 'amount' at row 1 while executing "INSERT INTO tokens(account, amount, symbol) VALUES (:ac, :am, :as) " with :ac="zhengjinhua1", :am=1e+10, :as="UXB".
The amount filed of tokens table defines double(14,4), but 1e+10 means 10 billion, it exceed the maximum. It should change to double(64,4), the command as follows:
ALTER TABLE tokens CHANGE amount amount double(64,4) DEFAULT NULL;
In addition, I sync the data of maninnet using this sql_db_plugin.
Submit a pr, see at: NebulaProtocol#2
Unfortunately, I've got exception when starting the nodeos instance as follows:
I don't know if my currently-used
@asiniscalchi @kesar We just discussed this PR. First, we would like to thank you for your support of EOSIO! It really is much appreciated. Our hope was (and still is) to provide easier plugin integration support.
You may have noticed that there is some github repro reorg in progress. As such we would like to remove this plugin from the EOSIO/eos repro and ask you to host it separately. Either by itself or in a fork of eos, whatever you like and is the easiest.
In the future we actually hope to provide similar seperation for the other plugins. During this process please help us with what is needed so external plugins like the sql_plugin can be integrated by users as easily as possible. We are hoping you will help us by being a "guinea pig" for this process.
nodeos --sql_db-uri="mysql://db=eos user=root host=127.0.0.1 password='password'" --data-dir /mnt/data/data --hard-replay-blockchain
1250174ms thread-0 wasm_interface.cpp:929 eosio_assert ] message: refund request not found
Try many times, basically all around 5000000, error