I compiled witness_node as the document, but it doesn't look like working well,
softwares : Debian9 x86, gcc 6,
boost.1.6..0(tried 1.5.7-1.5.9, none works, complain about some SSL functions),
bitshares-core is from github.
# witness_node -d /data/BTS_data --partial-operations true --track-account "\"1.2.22***\"" --rpc-endpoint
it needs many hours to sync data, but almost every time it will crash when the syncing data to a few days before current date,
after crashing or closed by Ctrl-C I start it again, but it won't sync data anymore, json rpc will return empty data(ie. empty bid and ask data).
2810445ms th_a object_database.cpp:94 open ] Opening object database from /data/BTS_data/blockchain ...
2822900ms th_a object_database.cpp:100 open ] Done opening object database.
2822923ms th_a application.cpp:131 reset_p2p_node ] Adding seed node 104.200.28.117:61705
..
...
2823265ms th_a witness.cpp:122 plugin_startup ] witness plugin: plugin_startup() begin
2823266ms th_a witness.cpp:137 plugin_startup ] No witnesses configured! Please add witness IDs and private keys to configuration.
2823266ms th_a witness.cpp:138 plugin_startup ] witness plugin: plugin_startup() end
2823266ms th_a main.cpp:179 main ] Started witness node on a chain with 0 blocks.
What I want to do is have a witness_node running, then I can get the ask/bid prices of some coins and use program to trade.
I have some questions here:
1. how to run witness_node smoothly even after restarting it?
2. do I have to set enable-stale-production = true and add some winness-id ?
I see some thread in forum saying to add some witness-id = "1.7.*
but in my config file, I can only add some "1.6.*", and I'v no idea what they are.
3. I heard the witness_node requires 8 ~ 24GB memory, closing it with Ctrl-C need to wait more than 10 minutes unitll it finish write data to disk,
but I only have 4GB memory, not SWAP, not SSD. but I never saw it use all of the memory, usually around 1GB,
though there is a time it did crashed with std::bad_alloc, but system still have lots of free memory, no OOM-killer message in system logs.
also closing it with a single Ctrl-C doesn't need to wait at all .
are these saying that I'm using wrong witness_node ?
4. is witness_node + cli_wallet enough to run a trading bot ? (with wintness_node default setting)
5. is there any public witness_node I can connect to ? then I can stop making my witness_node work, is it safe to run bot with public node ?
sorry, too many questions, but really need help, thanks!