Delegates, start your engines!

Started by toast, June 09, 2014, 01:54:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

denkhaus

Hi,

i wonder why do the net votes for delegates never change? Since some delegates producing blocks without missing a single opportunity, other delegates never produced a block at all.
I had the impression that delegate election is forced by the network itself?

puppies

Quote from: bytemaster on June 10, 2014, 06:16:20 PM
Quote from: puppies on June 10, 2014, 06:14:32 PM
Looks like my delegate node forked last night too.  I was able to get it back to what I believe is the correct chain by clearing the data directory.  Are the logs from my forked delegate worth anything?

Eric is actively working on setting up intentional fork generating tests.  We will be able to handle this better soon.

One odd thing I noticed in the node that forked is that the logs show its own IP address as a peer.  I haven't seen that in any of the logs of my other nodes.  Anyways, I'm off to work.  I'll keep as close of an eye on my nodes as I can.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

bytemaster

Quote from: puppies on June 10, 2014, 06:14:32 PM
Looks like my delegate node forked last night too.  I was able to get it back to what I believe is the correct chain by clearing the data directory.  Are the logs from my forked delegate worth anything?

Eric is actively working on setting up intentional fork generating tests.  We will be able to handle this better soon.
For the latest updates checkout my blog: [url="http://bytemaster.bitshares.org"]http://bytemaster.bitshares.org[/url]
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

puppies

Looks like my delegate node forked last night too.  I was able to get it back to what I believe is the correct chain by clearing the data directory.  Are the logs from my forked delegate worth anything?
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

toast

#181
Quote from: heyD on June 10, 2014, 04:38:24 PM
Quote from: toast on June 10, 2014, 04:18:46 PM
someone broke the build -.-

try pulling again

Tried again, but still the same.
BTW. I don't understand why I was on the wrong chain. I haven't done anything special after I launched the delegates. Sorry for not catching log information.

ok, one more try.  EDIT: actually wait a bit again... sigh
We should use chat for this. Link at top of forum.
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.

crazybit

Quote from: bitcoinerS on June 10, 2014, 04:44:17 PM
This is strange. Why are there two similar functions
blockchain_get_account_record
and
wallet_get_account
and why are they showing different info about same delegates? wallet_get_account is showing 0 blocks produced, while blockchain_get_account_record is showing 23 blocks produced..



blockchain_get_account_record init-delegate-38
{
  "id": 38,
  "name": "init-delegate-38",
  "public_data": null,
  "owner_key": "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z",
  "active_key_history": [[
      "20140610T070732",
      "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z"
    ]
  ],
  "delegate_info": {
    "votes_for": 111118188439,
    "votes_against": 0,
    "blocks_produced": 23,
    "blocks_missed": 74,
    "pay_balance": 857411,
    "next_secret_hash": "b3e4da54b09f97e7a459637d9e97354d65f45fe9",
    "last_block_num_produced": 2667
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null
}
default (unlocked) >>> wallet_get_account init-delegate-38
{
  "index": 3,
  "id": 38,
  "name": "init-delegate-38",
  "public_data": null,
  "owner_key": "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z",
  "active_key_history": [[
      "20140610T070732",
      "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z"
    ]
  ],
  "delegate_info": {
    "votes_for": 111117331028,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 74,
    "pay_balance": 0,
    "next_secret_hash": "0000000000000000000000000000000000000000",
    "last_block_num_produced": 4294967295
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null,
  "account_address": "XTS6VS3reBvjJMyeuiZTG1g7AexK2Kao1XBZ",
  "trust_level": 0,
  "private_data": null
}



this is known issue that the wallet not syn the delegate info.

bitcoinerS

This is strange. Why are there two similar functions
blockchain_get_account_record
and
wallet_get_account
and why are they showing different info about same delegates? wallet_get_account is showing 0 blocks produced, while blockchain_get_account_record is showing 23 blocks produced..



blockchain_get_account_record init-delegate-38
{
  "id": 38,
  "name": "init-delegate-38",
  "public_data": null,
  "owner_key": "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z",
  "active_key_history": [[
      "20140610T070732",
      "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z"
    ]
  ],
  "delegate_info": {
    "votes_for": 111118188439,
    "votes_against": 0,
    "blocks_produced": 23,
    "blocks_missed": 74,
    "pay_balance": 857411,
    "next_secret_hash": "b3e4da54b09f97e7a459637d9e97354d65f45fe9",
    "last_block_num_produced": 2667
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null
}
default (unlocked) >>> wallet_get_account init-delegate-38
{
  "index": 3,
  "id": 38,
  "name": "init-delegate-38",
  "public_data": null,
  "owner_key": "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z",
  "active_key_history": [[
      "20140610T070732",
      "XTS6ezsAe72hVoMq4mC4fnAAF2XYqprcpt4vZ5nkqUoZn8xsSWB5Z"
    ]
  ],
  "delegate_info": {
    "votes_for": 111117331028,
    "votes_against": 0,
    "blocks_produced": 0,
    "blocks_missed": 74,
    "pay_balance": 0,
    "next_secret_hash": "0000000000000000000000000000000000000000",
    "last_block_num_produced": 4294967295
  },
  "registration_date": "20140601T000000",
  "last_update": "20140601T000000",
  "meta_data": null,
  "account_address": "XTS6VS3reBvjJMyeuiZTG1g7AexK2Kao1XBZ",
  "trust_level": 0,
  "private_data": null
}

>>> approve bitcoiners

Xeldal


muse-umum

Quote from: toast on June 10, 2014, 04:18:46 PM
someone broke the build -.-

try pulling again

Tried again, but still the same.
BTW. I don't understand why I was on the wrong chain. I haven't done anything special after I launched the delegates. Sorry for not catching log information. 

mauritso

#176
https://dl.dropboxusercontent.com/u/26420542/outputcmakemakeOSX10.9.txt

[ 99%] Built target key_to_wif
Scanning dependencies of target wallet_tests
[100%] Building CXX object tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:210:17: error: implicit instantiation of undefined template 'std::__1::basic_ifstream<char, std::__1::char_traits<char> >'
  std::ifstream lhs(_result_file.string());
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:131:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
                                ^
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:211:17: error: implicit instantiation of undefined template 'std::__1::basic_ifstream<char, std::__1::char_traits<char> >'
  std::ifstream rhs(_expected_result_file.string());
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:131:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
                                ^
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:320:19: error: implicit instantiation of undefined template 'std::__1::basic_ifstream<char, std::__1::char_traits<char> >'
    std::ifstream test_config_file("test.config");
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:131:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
                                ^
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:333:21: error: use of undeclared identifier 'CommandLineToArgvA'
      char** argv = CommandLineToArgvA(line.c_str(),&argc);
                    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 errors generated.
make[2]: *** [tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o] Error 1
make[1]: *** [tests/CMakeFiles/wallet_tests.dir/all] Error 2
make: *** [all] Error 2



Build was indeed broken, trying again now. still broken it seems.
Posting the log just in case. Mac OS X 10.9.3.
430 warnings (a lot about deprecated functions, I know warnings don't mean that something is broken)

This happens with the most current version:

[100%] Building CXX object tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:229:17: error: implicit instantiation of undefined template 'std::__1::basic_ifstream<char, std::__1::char_traits<char> >'
  std::ifstream lhs(_result_file.string().c_str());
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:131:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
                                ^
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:230:17: error: implicit instantiation of undefined template 'std::__1::basic_ifstream<char, std::__1::char_traits<char> >'
  std::ifstream rhs(_expected_result_file.string().c_str());
                ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:131:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
                                ^
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:339:19: error: implicit instantiation of undefined template 'std::__1::basic_ifstream<char, std::__1::char_traits<char> >'
    std::ifstream test_config_file("test.config");
                  ^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iosfwd:131:33: note: template is declared here
    class _LIBCPP_TYPE_VIS_ONLY basic_ifstream;
                                ^
/Users/maurits/bitsharesxts/bitshares_toolkit/tests/wallet_tests.cpp:352:21: error: use of undeclared identifier 'CommandLineToArgvA'
      char** argv = CommandLineToArgvA(line.c_str(),&argc);
                    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 errors generated.
make[2]: *** [tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o] Error 1
make[1]: *** [tests/CMakeFiles/wallet_tests.dir/all] Error 2
make: *** [all] Error 2


Same error as above, but other line numbers it seems.
BTS: maurits

toast

Quote from: heyD on June 10, 2014, 04:17:36 PM
I found I was on a forked chain half an hour ago. (I was the only one producing the blocks)

Then I wiped the .BitsharesXTS, git pull, cmake, make. Errors occurred:


[100%] Building CXX object tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o
/root/bitshares_toolkit/tests/wallet_tests.cpp: In member function 鈥榖ool test_file::compare_files()鈥

                                                                                                        /root/bitshares_toolkit/tests/wallet_tests.cpp:210:21: error: variable 鈥榮td::ifstream lhs鈥has initializer but incomplete type
   std::ifstream lhs(_result_file.string());
                     ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:211:21: error: variable 鈥榮td::ifstream rhs鈥has initializer but incomplete type
   std::ifstream rhs(_expected_result_file.string());
                     ^
/root/bitshares_toolkit/tests/wallet_tests.cpp: In member function 鈥榲oid regression_test::test_method()鈥

                                                                                                            /root/bitshares_toolkit/tests/wallet_tests.cpp:320:35: error: variable 鈥榮td::ifstream test_config_file鈥has initializer but incomplete type
     std::ifstream test_config_file("test.config");
                                   ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:333:58: error: 鈥楥ommandLineToArgvA鈥was not declared in this scope
       char** argv = CommandLineToArgvA(line.c_str(),&argc);
                                                          ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:338:34: error: variable 鈥榮td::ifstream input_stream鈥has initializer but incomplete type
       std::ifstream input_stream(input_file.string());
                                  ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:347:22: error: 鈥楪lobalFree鈥was not declared in this scope
       GlobalFree(argv);
                      ^
/root/bitshares_toolkit/tests/wallet_tests.cpp: In member function 鈥榖ool test_file::compare_files()鈥

                                                                                                        /root/bitshares_toolkit/tests/wallet_tests.cpp:215:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o] Error 1
make[1]: *** [tests/CMakeFiles/wallet_tests.dir/all] Error 2
make: *** [all] Error 2


someone broke the build -.-

try pulling again
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.

muse-umum

I found I was on a forked chain half an hour ago. (I was the only one producing the blocks)

Then I wiped the .BitsharesXTS, git pull, cmake, make. Errors occurred:


[100%] Building CXX object tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o
/root/bitshares_toolkit/tests/wallet_tests.cpp: In member function 鈥榖ool test_file::compare_files()鈥

                                                                                                        /root/bitshares_toolkit/tests/wallet_tests.cpp:210:21: error: variable 鈥榮td::ifstream lhs鈥has initializer but incomplete type
   std::ifstream lhs(_result_file.string());
                     ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:211:21: error: variable 鈥榮td::ifstream rhs鈥has initializer but incomplete type
   std::ifstream rhs(_expected_result_file.string());
                     ^
/root/bitshares_toolkit/tests/wallet_tests.cpp: In member function 鈥榲oid regression_test::test_method()鈥

                                                                                                            /root/bitshares_toolkit/tests/wallet_tests.cpp:320:35: error: variable 鈥榮td::ifstream test_config_file鈥has initializer but incomplete type
     std::ifstream test_config_file("test.config");
                                   ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:333:58: error: 鈥楥ommandLineToArgvA鈥was not declared in this scope
       char** argv = CommandLineToArgvA(line.c_str(),&argc);
                                                          ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:338:34: error: variable 鈥榮td::ifstream input_stream鈥has initializer but incomplete type
       std::ifstream input_stream(input_file.string());
                                  ^
/root/bitshares_toolkit/tests/wallet_tests.cpp:347:22: error: 鈥楪lobalFree鈥was not declared in this scope
       GlobalFree(argv);
                      ^
/root/bitshares_toolkit/tests/wallet_tests.cpp: In member function 鈥榖ool test_file::compare_files()鈥

                                                                                                        /root/bitshares_toolkit/tests/wallet_tests.cpp:215:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[2]: *** [tests/CMakeFiles/wallet_tests.dir/wallet_tests.cpp.o] Error 1
make[1]: *** [tests/CMakeFiles/wallet_tests.dir/all] Error 2
make: *** [all] Error 2

bitder

Quote from: toast on June 10, 2014, 02:49:31 PM
Quote from: bitder on June 10, 2014, 12:10:14 PM
This is a problem/bug with the wallet account mixing up the "id" and "index".
All my delegates (26,27,28,29) had the id=(26,27,28,29) but the index=(3,5,7,9) so when the client is restarted they load with the wrong id (because it's using the index).

Post a PTS address for a tip from BM!

Ps6LLRMBjiEMrikwdCKJ9sMDBTgB4GuVKe
Thanks.
wallet_account_set_approval delegate.bitder 1

toast

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.

alexxy

Quote from: toast on June 10, 2014, 02:48:33 PM
Quote from: alexxy on June 10, 2014, 02:44:33 PM
Any idea WTF this is. Its happend after latest git pull


alexxy (unlocked) >>> wallet_list_receive_accounts
NAME                               BALANCE                  KEY                                                             REGISTERED            TRUST LEVEL   
rob                                XTS5UEnYkxWvjHRX4qe16KpYRdwiEBfK51TNJe9UB8FKKjmBkN9cw           2014-06-01T00:00:00   0             
richard                            XTS75TAiDdzhZJQbw8aDtvXGwM1QV3PqbUgjwbEzQQqggJ5EQmiE5           2014-06-01T00:00:00   0             
qq-com                             XTS7Jr9XcHVrvJYGek2FLaRrxz4xkzTyLkDyxVE998EHhwxTz1M1A           2014-06-01T00:00:00   0             
init-delegate-7 (delegate)         XTS5H3qwDsnjm8yoiN1CAQg6LKTnSNuXZDePeGAQSa5CiALSFRFQ8           2014-06-01T00:00:00   0             
init-delegate-3 (delegate)         XTS7bUdQ41J4vhNVBkmbqDKGiftrmQNrL1vCx881Fg4R2hE5r6P2Z           2014-06-01T00:00:00   0             


Seems like its non uniq priv keys!

This is a wallet sync bug. You don't actually own those key =P
But the bad news is that you will have to wipe your wallet after we fix it.

Seems like bitder found the bug:

QuoteThis is a problem/bug with the wallet account mixing up the "id" and "index".
All my delegates (26,27,28,29) had the id=(26,27,28,29) but the index=(3,5,7,9) so when the client is restarted they load with the wrong id (because it's using the index).


Sure its a bug =D there should be one fresh generated key. and 4 init-delegates-{78-81} keys
Vote for my delegates! alexxy | lexx
PTS: PmraxfZ852y9oEKrYMLX1ee3e4qRWPUTFC
BTS: alexxy