The database is null
when i perform
./cleos system delegatebw voter voter '25000000.0000 EOS' '25000000.0000 EOS' --transfer
admin-shiqi@admin-shiqi:~/code/eos/build/programs/cleos$ ./cleos system delegatebw voter voter '25000000.0000 EOS' '25000000.0000 EOS' --transfer
2713349ms thread-0 main.cpp:1002 operator() ] act_payload: {"from":"voter","receiver":"voter","stake_net_quantity":"25000000.0000 EOS","stake_cpu_quantity":"25000000.0000 EOS","transfer":true}
2713350ms thread-0 main.cpp:418 create_action ] result: {"binargs":"0000000080ab32dd0000000080ab32dd004429353a00000004454f5300000000004429353a00000004454f530000000001"} arg: {"code":"eosio","action":"delegatebw","args":{"from":"voter","receiver":"voter","stake_net_quantity":"25000000.0000 EOS","stake_cpu_quantity":"25000000.0000 EOS","transfer":true}}
Error 3080001: account using more than allotted RAM usage
Error Details:
account voter has insufficient ram bytes; needs 3688 has 0
so i perform ./cleos get table eosio voter userres
Error 3060003: Contract Table Query Exception
Error Details:
Table userres is not specified in the ABI
that i deploy eosio.system constract
./cleos set contract eosio ../../contracts/eosio.system -p eosio
Reading WAST/WASM from ../../contracts/eosio.system/eosio.system.wasm...
Using already assembled WASM...
Publishing contract...
executed transaction: 49c9ed23cc63db8d08c36f471de555a27c4d6c80bf9c2d7f3fa5fb01a0b91be7 40280 bytes 3966 us
# eosio <= eosio::setcode {"account":"eosio","vmtype":0,"vmversion":0,"code":"0061736d0100000001c1023060027f7e0060067f7e7e7f7f...
# eosio <= eosio::setabi {"account":"eosio","abi":{"types":[],"structs":[{"name":"buyrambytes","base":"","fields":[{"name":"p...
warning: transaction executed locally, but may not be confirmed by the network yet
it success!!!!But i did the same operation already.why ? Then i perform
./cleos get table eosio voter userres
{
"rows": [],
"more": false
}
I found that the database list was empty, so where was the voter account I created? my operation's url is https://github.com/eosstore/eosio-dawn4.0/wiki/EOSIO-dawn4.0-%E8%8A%82%E7%82%B9%E9%83%A8%E7%BD%B2%E6%96%B9%E6%A1%88
你上面的抵押没有成功,抵押前需要足够的ram_bytes,payer是voters还是eosio,你自己试下。
cleos push action eosio buyram '{"payer":"eosio","receiver":"voters","quant":"200.0000 EOS"}' -p eosio
I'm having the same problem.
@eosstore , if you have not delegated bandwidth (you first command failed), you should not have a record in voters table.
before you can delegate bandwidth you should have bought some RAM:
cleos system buyram eosio voter "100000.0000 EOS" -p eosi
otherwise system cannot create a row in voters table for you.
Or you can do all at once (create account, buy RAM, delegate bandwidth):
cleos system newaccount eosio voter1111111 EOS6bqw42R7LpugJe9nK8ENSWYnncFSZ3XzM4ioR99jWkGgcd8TDe --buy-ram-EOS '10 EOS' --stake-net '10 EOS' --stake-cpu '10 EOS'
In both examples tokens will be taken from eosio account. Make sure it has enough funds.
Also - delegating bandwidth and buying RAM works only after system contract was installed.