Author Topic: Delegates, start your engines!  (Read 54543 times)

0 Members and 1 Guest are viewing this topic.

Offline pgbit

  • Sr. Member
  • ****
  • Posts: 241
    • View Profile
I have missed a critical step, and get an error importing the private keys I have generated:

mywallet2 (unlocked) >>> wallet_import_private_key 5Ke...................................................................etc "pgbit-delegate-1"

"You can only import keys into receive accounts"

Can anyone point me to instructions on sorting this one?
thanks.

Offline Harvey

  • Sr. Member
  • ****
  • Posts: 244
    • View Profile
Yes, it works:

init-delegate-93 (delegate)        XTS7fzyfX657vDUP4UVXRHNxCMZsGpCCGkvP7rN5NKkuEjktg5sHd           2014-06-01T00:00:00   0
init-delegate-92 (delegate)        XTS6LDMYp9UNEYLUEdpCqx5dCEkWwrpP67LE5Zu3sSYqjP6LraqTW           2014-06-01T00:00:00   0
init-delegate-91 (delegate)        XTS7qQScYbuFqsffgH6AammYXWMkZ9jSYdsYW21zguc2k2N3hYnfN           2014-06-01T00:00:00   0
init-delegate-90 (delegate)        XTS7Bsi43JASDcPdgcLaXSLQ7mVNJReUvG4rcQYHHaJ3Ca7SLPYyq           2014-06-01T00:00:00   0
BTS       Witness:harvey-xts Seed:128.199.143.47:2015 API:wss://128.199.143.47:2016 
MUSE   Witness:harvey-xts Seed:128.199.143.47:2017 API:ws://128.199.143.47:2018

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
seems your locale is not correct.
run " locale' to see what's locale you are use now.
run "locale -a " to see what's locale support in your system
then choose a correct locale, like:
Code: [Select]
export LC_ALL=POSIX
build again.

that worked.


There is another problem. As soon I as restart bitshares_client wallet delegates seem to reset and wrong delegates show up.

Code: [Select]
wallet_list_receive_accounts
NAME                               BALANCE                  KEY                                                             REGISTERED            TRUST LEVEL   
init-delegate-9 (delegate)         XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8           2014-06-01T00:00:00   0             
init-delegate-7 (delegate)         XTS5H3qwDsnjm8yoiN1CAQg6LKTnSNuXZDePeGAQSa5CiALSFRFQ8           2014-06-01T00:00:00   0             
init-delegate-5 (delegate)         XTS6tmvXdn2vJss4a4ADVUUi8GbAC37H6HJRcVeFyhzcsRUNyQJGE           2014-06-01T00:00:00   0             
init-delegate-3 (delegate)         XTS7bUdQ41J4vhNVBkmbqDKGiftrmQNrL1vCx881Fg4R2hE5r6P2Z           2014-06-01T00:00:00   0             

If I delete ~/.BitsharesXTS and start over I can load private keys and all seems to work, but only till I restart client. Then wrong delegates show up again.

>>> approve bitcoiners

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
seems your locale is not correct.
run " locale' to see what's locale you are use now.
run "locale -a " to see what's locale support in your system
then choose a correct locale, like:
Code: [Select]
export LC_ALL=POSIX
build again.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Ok. Now I have a working node on my desktop with 4 initial delegates loaded. Still waiting to see them produce blocks.. hopefully soon. But I am still having no luck compiling on a VPS server rented for the purpose of hosting this node. I signed up for a 2 GB RAM server on https://bitvps.com/ (Ubuntu 14.04) and tried compiling bitshares_toolkit. Getting this error:

Code: [Select]
[ 64%] Built target bts_api_generator
[ 64%] Generating include/bts/api/common_api.hpp, ../rpc_stubs/common_api_rpc_server.cpp, ../rpc_stubs/common_api_rpc_client.cpp, ../rpc_stubs/common_api_client.cpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_server.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_overrides.ipp
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
make[2]: *** [libraries/api/include/bts/api/common_api.hpp] Error 134
make[1]: *** [libraries/api/CMakeFiles/bts_api.dir/all] Error 2
make: *** [all] Error 2
you can get more infomation with strace
Code: [Select]
cd /root/bitshares_toolkit/libraries/api && strace ./bts_api_generator --api-classname=common_api --api-interface-output-dir=/root/bitshares_toolkit/libraries/api --rpc-stub-output-dir=/root/bitshares_toolkit/libraries/rpc_stubs /root/bitshares_toolkit/libraries/api/types.json /root/bitshares_toolkit/libraries/api/blockchain_api.json /root/bitshares_toolkit/libraries/api/wallet_api.json /root/bitshares_toolkit/libraries/api/network_api.json /root/bitshares_toolkit/libraries/api/bitcoin_api.json /root/bitshares_toolkit/libraries/api/general_api.json



Code: [Select]
cd /root/bitshares_toolkit/libraries/api && strace ./bts_api_generator --api-classname=common_api --api-interface-output-dir=/root/bitshares_toolkit/libraries/api --rpc-stub-output-dir=/root/bitshares_toolkit/libraries/rpc_stubs /root/bitshares_toolkit/libraries/api/types.json /root/bitshares_toolkit/libraries/api/blockchain_api.json /root/bitshares_toolkit/libraries/api/wallet_api.json /root/bitshares_toolkit/libraries/api/network_api.json /root/bitshares_toolkit/libraries/api/bitcoin_api.json /root/bitshares_toolkit/libraries/api/general_api.json
execve("./bts_api_generator", ["./bts_api_generator", "--api-classname=common_api", "--api-interface-output-dir=/root"..., "--rpc-stub-output-dir=/root/bits"..., "/root/bitshares_toolkit/librarie"..., "/root/bitshares_toolkit/librarie"..., "/root/bitshares_toolkit/librarie"..., "/root/bitshares_toolkit/librarie"..., "/root/bitshares_toolkit/librarie"..., "/root/bitshares_toolkit/librarie"...], [/* 18 vars */]) = 0
brk(0)                                  = 0x2182000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779ffe000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32889, ...}) = 0
mmap(NULL, 32889, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd779ff5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0po\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=141574, ...}) = 0
mmap(NULL, 2217264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd779bc0000
mprotect(0x7fd779bd9000, 2093056, PROT_NONE) = 0
mmap(0x7fd779dd8000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7fd779dd8000
mmap(0x7fd779dda000, 13616, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd779dda000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\265\5\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=979056, ...}) = 0
mmap(NULL, 3159072, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd7798bc000
mprotect(0x7fd7799a2000, 2093056, PROT_NONE) = 0
mmap(0x7fd779ba1000, 40960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe5000) = 0x7fd779ba1000
mmap(0x7fd779bab000, 82976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd779bab000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20V\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=1071552, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779ff4000
mmap(NULL, 3166568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd7795b6000
mprotect(0x7fd7796bb000, 2093056, PROT_NONE) = 0
mmap(0x7fd7798ba000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x104000) = 0x7fd7798ba000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260*\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=90080, ...}) = 0
mmap(NULL, 2185952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd7793a0000
mprotect(0x7fd7793b6000, 2093056, PROT_NONE) = 0
mmap(0x7fd7795b5000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7fd7795b5000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1845024, ...}) = 0
mmap(NULL, 3953344, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd778fda000
mprotect(0x7fd779196000, 2093056, PROT_NONE) = 0
mmap(0x7fd779395000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bb000) = 0x7fd779395000
mmap(0x7fd77939b000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd77939b000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779ff3000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779ff2000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779ff0000
arch_prctl(ARCH_SET_FS, 0x7fd779ff0780) = 0
mprotect(0x7fd779395000, 16384, PROT_READ) = 0
mprotect(0x7fd7798ba000, 4096, PROT_READ) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779fef000
mprotect(0x7fd779ba1000, 32768, PROT_READ) = 0
mprotect(0x7fd779dd8000, 4096, PROT_READ) = 0
mprotect(0x735000, 4096, PROT_READ)     = 0
mprotect(0x7fd77a000000, 4096, PROT_READ) = 0
munmap(0x7fd779ff5000, 32889)           = 0
set_tid_address(0x7fd779ff0a50)         = 32216
set_robust_list(0x7fd779ff0a60, 24)     = 0
futex(0x7fff4ac94a30, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 7fd779ff0780) = -1 EAGAIN (Resource temporarily unavailable)
rt_sigaction(SIGRTMIN, {0x7fd779bc69f0, [], SA_RESTORER|SA_SIGINFO, 0x7fd779bd0340}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fd779bc6a80, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fd779bd0340}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=10240*1024, rlim_max=RLIM64_INFINITY}) = 0
futex(0x7fd779bbd96c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
futex(0x7fd779bbd978, FUTEX_WAKE_PRIVATE, 2147483647) = 0
brk(0)                                  = 0x2182000
brk(0x21a3000)                          = 0x21a3000
stat("/root/bitshares_toolkit/libraries/api/types.json", {st_mode=S_IFREG|0644, st_size=12705, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/types.json", O_RDONLY) = 3
read(3, "{\n  \"type_map\":\n    [\n      {\n  "..., 8191) = 8191
read(3, "::wallet::pretty_transaction>\",\n"..., 8191) = 4514
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/blockchain_api.json", {st_mode=S_IFREG|0644, st_size=8537, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/blockchain_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"Blockchain Meth"..., 8191) = 8191
read(3, " : [\n            {\n             "..., 8191) = 346
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/wallet_api.json", {st_mode=S_IFREG|0644, st_size=32001, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/wallet_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"Wallet Methods\""..., 8191) = 8191
read(3, "isites\" : [\"no_prerequisites\"],\n"..., 8191) = 8191
read(3, "              \"description\" : \"a"..., 8191) = 8191
read(3, "pe\" : \"std::string\",\n           "..., 8191) = 7428
brk(0x21c4000)                          = 0x21c4000
brk(0x21c3000)                          = 0x21c3000
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/network_api.json", {st_mode=S_IFREG|0644, st_size=5373, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/network_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"Network Methods"..., 8191) = 5373
brk(0x21b5000)                          = 0x21b5000
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/bitcoin_api.json", {st_mode=S_IFREG|0644, st_size=18555, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/bitcoin_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\" : \"Bitcoin Compat"..., 8191) = 8191
read(3, "ed\", \"wallet_open\"],\n          \""..., 8191) = 8191
read(3, "ssage\",\n              \"type\" : \""..., 8191) = 2173
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/general_api.json", {st_mode=S_IFREG|0644, st_size=2842, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/general_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"General Methods"..., 8191) = 2842
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/types.json", {st_mode=S_IFREG|0644, st_size=12705, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/types.json", O_RDONLY) = 3
read(3, "{\n  \"type_map\":\n    [\n      {\n  "..., 8191) = 8191
read(3, "::wallet::pretty_transaction>\",\n"..., 8191) = 4514
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/blockchain_api.json", {st_mode=S_IFREG|0644, st_size=8537, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/blockchain_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"Blockchain Meth"..., 8191) = 8191
read(3, " : [\n            {\n             "..., 8191) = 346
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/wallet_api.json", {st_mode=S_IFREG|0644, st_size=32001, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/wallet_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"Wallet Methods\""..., 8191) = 8191
read(3, "isites\" : [\"no_prerequisites\"],\n"..., 8191) = 8191
read(3, "              \"description\" : \"a"..., 8191) = 8191
read(3, "pe\" : \"std::string\",\n           "..., 8191) = 7428
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/network_api.json", {st_mode=S_IFREG|0644, st_size=5373, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/network_api.json", O_RDONLY) = 3
brk(0x21d6000)                          = 0x21d6000
read(3, "{\n  \"category\": \"Network Methods"..., 8191) = 5373
brk(0x21d4000)                          = 0x21d4000
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/bitcoin_api.json", {st_mode=S_IFREG|0644, st_size=18555, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/bitcoin_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\" : \"Bitcoin Compat"..., 8191) = 8191
read(3, "ed\", \"wallet_open\"],\n          \""..., 8191) = 8191
read(3, "ssage\",\n              \"type\" : \""..., 8191) = 2173
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/general_api.json", {st_mode=S_IFREG|0644, st_size=2842, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/general_api.json", O_RDONLY) = 3
read(3, "{\n  \"category\": \"General Methods"..., 8191) = 2842
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/api/include/bts/api", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/root/bitshares_toolkit/libraries/api/include/bts/api/common_api.hpp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
writev(3, [{"//                              "..., 8185}, {"     *\n", 7}], 2) = 8192
writev(3, [{"     * @return optional_wallet_n"..., 8127}, {"     * Sends given amount to the"..., 194}], 2) = 8321
writev(3, [{"\n     *\n     * @param amount_to_"..., 8081}, {"bts::blockchain::signed_transact"..., 212}], 2) = 8293
writev(3, [{" = 0;\n    /**\n     * Vote on a p"..., 8141}, {"     * Attempts add or remove <n"..., 113}], 2) = 8254
writev(3, [{"\n     *\n     * @param node The n"..., 8190}, {"std::string bitcoin_signmessage("..., 87}], 2) = 8277
write(3, " = 0;\n    /**\n     * Return info"..., 3481) = 3481
close(3)                                = 0
stat("/root/bitshares_toolkit/libraries/rpc_stubs/include/bts/rpc_stubs", 0x7fff4ac93af0) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1607648, ...}) = 0
mmap(NULL, 1607648, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd779e66000
close(3)                                = 0
open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd779ffd000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7fd779ffd000, 4096)            = 0
open("/usr/lib/locale/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/en/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_CTYPE", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
futex(0x7fd7795b5850, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, "terminate called after throwing "..., 48terminate called after throwing an instance of ') = 48
write(2, "std::runtime_error", 18std::runtime_error)      = 18
write(2, "'\n", 2'
)                      = 2
write(2, "  what():  ", 11  what():  )             = 11
write(2, "locale::facet::_S_create_c_local"..., 48locale::facet::_S_create_c_locale name not valid) = 48
write(2, "\n", 1
)                       = 1
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(32216, 32216, SIGABRT)           = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=32216, si_uid=0} ---
+++ killed by SIGABRT +++
Aborted
>>> approve bitcoiners

Offline sfinder

  • Hero Member
  • *****
  • Posts: 1205
  • 4 Cores CPU+100GB SSD+anti-DDoS Pro
    • View Profile
i compiled on my local ubuntu and upload /bitsharestoolkit folder to my amazon vps and successfully running under  ec2 with 512mb ram 

Ok. Now I have a working node on my desktop with 4 initial delegates loaded. Still waiting to see them produce blocks.. hopefully soon. But I am still having no luck compiling on a VPS server rented for the purpose of hosting this node. I signed up for a 2 GB RAM server on https://bitvps.com/ (Ubuntu 14.04) and tried compiling bitshares_toolkit. Getting this error:

Code: [Select]
[ 64%] Built target bts_api_generator
[ 64%] Generating include/bts/api/common_api.hpp, ../rpc_stubs/common_api_rpc_server.cpp, ../rpc_stubs/common_api_rpc_client.cpp, ../rpc_stubs/common_api_client.cpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_server.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_overrides.ipp
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
make[2]: *** [libraries/api/include/bts/api/common_api.hpp] Error 134
make[1]: *** [libraries/api/CMakeFiles/bts_api.dir/all] Error 2
make: *** [all] Error 2
微博:星在飘我在找|BTS X 受托人delegate ID:baidu
中国教育书店合作将20%收入捐献给贫困山区学生。
Cooperating with China Education Bookstore and will donate 20% of delegate income to the poor students

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I guess I'm on a fork too.

Code: [Select]
tao (unlocked) >>> get_info
{
  "blockchain_head_block_num": 217,
  "blockchain_head_block_time": "20140610T034415",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 3.4504690729845762,
  "network_num_connections": 1,
  "wallet_balance": [[
      0,
      "XTS"
    ]
  ],
  "wallet_unlocked_seconds_remaining": 9927654,
  "wallet_next_block_production_time": "20140610T034530",
  "wallet_seconds_until_next_block_production": 50,
  "wallet_local_time": "20140610T034440",
  "blockchain_random_seed": "d9f9c3801b1e1059decceebf9f8cb06132f1866b",
  "blockchain_shares": 9999972116859,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20141003T012534.456867",
  "wallet_version": 100
}

produce block is OK.

Code: [Select]
{
  "id": 50,
  "name": "init-delegate-50",
  "public_data": null,
  "owner_key": "XTS7xQtXcZuNn5RgyPdvtfsYAJXS8bysihvrCsvuNC6twdRNxPFA7",
  "active_key_history": [[
      "19700101T000000",
      "XTS7xQtXcZuNn5RgyPdvtfsYAJXS8bysihvrCsvuNC6twdRNxPFA7"
    ]
  ],
  "delegate_info": {
    "votes_for": 100886340227,
    "votes_against": 0,
    "blocks_produced": 50,
    "blocks_missed": 14,
    "pay_balance": 103238,
    "next_secret_hash": "fb447a2daf3892e83e510d21522658369ec92911",
    "last_block_num_produced": 218
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null
}

Code: [Select]
tao (unlocked) >>> blockchain_get_account_record init-delegate-51
{
  "id": 51,
  "name": "init-delegate-51",
  "public_data": null,
  "owner_key": "XTS8NY1vLakvjzdJHmcia3CByapQJZCnNdk6hLMd1numLck6Tc9oc",
  "active_key_history": [[
      "19700101T000000",
      "XTS8NY1vLakvjzdJHmcia3CByapQJZCnNdk6hLMd1numLck6Tc9oc"
    ]
  ],
  "delegate_info": {
    "votes_for": 98724719955,
    "votes_against": 0,
    "blocks_produced": 49,
    "blocks_missed": 16,
    "pay_balance": 102108,
    "next_secret_hash": "fb3b57c09856f73b740c82f198dfa56ee3568d73",
    "last_block_num_produced": 215
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null
}
seems it's another fork which is diferent with me.
I am wondering what's the rules to decide which chain is valid?

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
Ok. Now I have a working node on my desktop with 4 initial delegates loaded. Still waiting to see them produce blocks.. hopefully soon. But I am still having no luck compiling on a VPS server rented for the purpose of hosting this node. I signed up for a 2 GB RAM server on https://bitvps.com/ (Ubuntu 14.04) and tried compiling bitshares_toolkit. Getting this error:

Code: [Select]
[ 64%] Built target bts_api_generator
[ 64%] Generating include/bts/api/common_api.hpp, ../rpc_stubs/common_api_rpc_server.cpp, ../rpc_stubs/common_api_rpc_client.cpp, ../rpc_stubs/common_api_client.cpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_server.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_overrides.ipp
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
make[2]: *** [libraries/api/include/bts/api/common_api.hpp] Error 134
make[1]: *** [libraries/api/CMakeFiles/bts_api.dir/all] Error 2
make: *** [all] Error 2
you can get more infomation with strace
Code: [Select]
cd /root/bitshares_toolkit/libraries/api && strace ./bts_api_generator --api-classname=common_api --api-interface-output-dir=/root/bitshares_toolkit/libraries/api --rpc-stub-output-dir=/root/bitshares_toolkit/libraries/rpc_stubs /root/bitshares_toolkit/libraries/api/types.json /root/bitshares_toolkit/libraries/api/blockchain_api.json /root/bitshares_toolkit/libraries/api/wallet_api.json /root/bitshares_toolkit/libraries/api/network_api.json /root/bitshares_toolkit/libraries/api/bitcoin_api.json /root/bitshares_toolkit/libraries/api/general_api.json

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Ok. Now I have a working node on my desktop with 4 initial delegates loaded. Still waiting to see them produce blocks.. hopefully soon. But I am still having no luck compiling on a VPS server rented for the purpose of hosting this node. I signed up for a 2 GB RAM server on https://bitvps.com/ (Ubuntu 14.04) and tried compiling bitshares_toolkit. Getting this error:

Code: [Select]
[ 64%] Built target bts_api_generator
[ 64%] Generating include/bts/api/common_api.hpp, ../rpc_stubs/common_api_rpc_server.cpp, ../rpc_stubs/common_api_rpc_client.cpp, ../rpc_stubs/common_api_client.cpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_server.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_rpc_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_client.hpp, ../rpc_stubs/include/bts/rpc_stubs/common_api_overrides.ipp
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted
make[2]: *** [libraries/api/include/bts/api/common_api.hpp] Error 134
make[1]: *** [libraries/api/CMakeFiles/bts_api.dir/all] Error 2
make: *** [all] Error 2
>>> approve bitcoiners

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
Ok people who were importing others' keys:

I think we fixed it, wipe your data dir and re-import.
+5%

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
My delegates were fine in the beginning.
But after I close and reopen the wallet, they become other's Keys:
init-delegate-9 (delegate)         XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8           2014-06-01T00:00:00   0
init-delegate-7 (delegate)         XTS5H3qwDsnjm8yoiN1CAQg6LKTnSNuXZDePeGAQSa5CiALSFRFQ8           2014-06-01T00:00:00   0
init-delegate-5 (delegate)         XTS6tmvXdn2vJss4a4ADVUUi8GbAC37H6HJRcVeFyhzcsRUNyQJGE           2014-06-01T00:00:00   0
init-delegate-3 (delegate)         XTS7bUdQ41J4vhNVBkmbqDKGiftrmQNrL1vCx881Fg4R2hE5r6P2Z           2014-06-01T00:00:00   0


we just fixed this - you got unlucky.
You have to wipe your wallet and re-import with the newest build

Ok people who were importing others' keys:

I think we fixed it, wipe your data dir and re-import.

ok. deleted ~/.BitSharesXTS and reimported keys. Now they show up.

Code: [Select]
wallet_list_receive_accounts
NAME                               BALANCE                  KEY                                                             REGISTERED            TRUST LEVEL   
init-delegate-41 (delegate)        XTS73iK3RkkijdfgzH5mioB4wzWFNsmsvwtsNPnkoHAApHK6cbMz3           2014-06-01T00:00:00   0             
init-delegate-40 (delegate)        XTS7DeMWhGV8P7oiKoigtGqFKDfauB83Nrxy5FpMwLEjMw7wC8UVe           2014-06-01T00:00:00   0             
init-delegate-39 (delegate)        XTS72Xc5wBYmWQrAqcPoU6RSEegB3CosNh82wbf4QkKquJtbhgPWL           2014-06-01T00:00:00   0             
init-delegate-38 (delegate)        XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z           2014-06-01T00:00:00   0             
"OK"

What do I do next? Do I need to register name(s) for these delegates?

Your delegates are registered already, just leave your node online
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Ok people who were importing others' keys:

I think we fixed it, wipe your data dir and re-import.

ok. deleted ~/.BitSharesXTS and reimported keys. Now they show up.

Code: [Select]
wallet_list_receive_accounts
NAME                               BALANCE                  KEY                                                             REGISTERED            TRUST LEVEL   
init-delegate-41 (delegate)        XTS73iK3RkkijdfgzH5mioB4wzWFNsmsvwtsNPnkoHAApHK6cbMz3           2014-06-01T00:00:00   0             
init-delegate-40 (delegate)        XTS7DeMWhGV8P7oiKoigtGqFKDfauB83Nrxy5FpMwLEjMw7wC8UVe           2014-06-01T00:00:00   0             
init-delegate-39 (delegate)        XTS72Xc5wBYmWQrAqcPoU6RSEegB3CosNh82wbf4QkKquJtbhgPWL           2014-06-01T00:00:00   0             
init-delegate-38 (delegate)        XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z           2014-06-01T00:00:00   0             
"OK"

What do I do next? Do I need to register name(s) for these delegates?
>>> approve bitcoiners

Offline Harvey

  • Sr. Member
  • ****
  • Posts: 244
    • View Profile
My delegates were fine in the beginning.
But after I close and reopen the wallet, they become other's Keys:
init-delegate-9 (delegate)         XTS6sSu1DhZUxpnoLz1wYvwsowUQpa4zyHFkqo972fKnU6xrEKVx8           2014-06-01T00:00:00   0
init-delegate-7 (delegate)         XTS5H3qwDsnjm8yoiN1CAQg6LKTnSNuXZDePeGAQSa5CiALSFRFQ8           2014-06-01T00:00:00   0
init-delegate-5 (delegate)         XTS6tmvXdn2vJss4a4ADVUUi8GbAC37H6HJRcVeFyhzcsRUNyQJGE           2014-06-01T00:00:00   0
init-delegate-3 (delegate)         XTS7bUdQ41J4vhNVBkmbqDKGiftrmQNrL1vCx881Fg4R2hE5r6P2Z           2014-06-01T00:00:00   0

BTS       Witness:harvey-xts Seed:128.199.143.47:2015 API:wss://128.199.143.47:2016 
MUSE   Witness:harvey-xts Seed:128.199.143.47:2017 API:ws://128.199.143.47:2018

Offline taoljj

  • Full Member
  • ***
  • Posts: 177
    • View Profile
I guess I'm on a fork as I can see that I'm the only delegate generating blocks.

get_info
{
  "blockchain_head_block_num": 962,
  "blockchain_head_block_time": "20140609T214430",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 19.696969696969695,
  "network_num_connections": 7,
  "wallet_unlocked_seconds_remaining": 9999999343,
  "wallet_next_block_production_time": "20140609T215515",
  "wallet_seconds_until_next_block_production": 119,
  "wallet_local_time": "20140609T215316",
  "blockchain_random_seed": "3a3a9e5f0ac5b5ebbfa4aeb0294a0c152af8efad",
  "blockchain_shares": 9999979523473,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20181223T045058.320125",
  "wallet_version": 100
}

...

I guess I'm on a fork too.

Code: [Select]
tao (unlocked) >>> get_info
{
  "blockchain_head_block_num": 217,
  "blockchain_head_block_time": "20140610T034415",
  "blockchain_confirmation_requirement": 291,
  "blockchain_average_delegate_participation": 3.4504690729845762,
  "network_num_connections": 1,
  "wallet_balance": [[
      0,
      "XTS"
    ]
  ],
  "wallet_unlocked_seconds_remaining": 9927654,
  "wallet_next_block_production_time": "20140610T034530",
  "wallet_seconds_until_next_block_production": 50,
  "wallet_local_time": "20140610T034440",
  "blockchain_random_seed": "d9f9c3801b1e1059decceebf9f8cb06132f1866b",
  "blockchain_shares": 9999972116859,
  "network_num_connections_max": 12,
  "network_protocol_version": 101,
  "wallet_open": true,
  "wallet_unlocked_until": "20141003T012534.456867",
  "wallet_version": 100
}

produce block is OK.

Code: [Select]
{
  "id": 50,
  "name": "init-delegate-50",
  "public_data": null,
  "owner_key": "XTS7xQtXcZuNn5RgyPdvtfsYAJXS8bysihvrCsvuNC6twdRNxPFA7",
  "active_key_history": [[
      "19700101T000000",
      "XTS7xQtXcZuNn5RgyPdvtfsYAJXS8bysihvrCsvuNC6twdRNxPFA7"
    ]
  ],
  "delegate_info": {
    "votes_for": 100886340227,
    "votes_against": 0,
    "blocks_produced": 50,
    "blocks_missed": 14,
    "pay_balance": 103238,
    "next_secret_hash": "fb447a2daf3892e83e510d21522658369ec92911",
    "last_block_num_produced": 218
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null
}

Code: [Select]
tao (unlocked) >>> blockchain_get_account_record init-delegate-51
{
  "id": 51,
  "name": "init-delegate-51",
  "public_data": null,
  "owner_key": "XTS8NY1vLakvjzdJHmcia3CByapQJZCnNdk6hLMd1numLck6Tc9oc",
  "active_key_history": [[
      "19700101T000000",
      "XTS8NY1vLakvjzdJHmcia3CByapQJZCnNdk6hLMd1numLck6Tc9oc"
    ]
  ],
  "delegate_info": {
    "votes_for": 98724719955,
    "votes_against": 0,
    "blocks_produced": 49,
    "blocks_missed": 16,
    "pay_balance": 102108,
    "next_secret_hash": "fb3b57c09856f73b740c82f198dfa56ee3568d73",
    "last_block_num_produced": 215
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null
}
BTS      Witness: delegate.taoljj

Offline toast

  • Hero Member
  • *****
  • Posts: 4001
    • View Profile
  • BitShares: nikolai
Ok people who were importing others' keys:

I think we fixed it, wipe your data dir and re-import.
Do not use this post as information for making any important decisions. The only agreements I ever make are informal and non-binding. Take the same precautions as when dealing with a compromised account, scammer, sockpuppet, etc.