Author Topic: Delegates and seed nodes, upgrade your client version to 0.3.1  (Read 6949 times)

0 Members and 1 Guest are viewing this topic.

Offline xweng

  • Jr. Member
  • **
  • Posts: 38
    • View Profile
Code: [Select]
Peer 106.5.241.47:23652 disconnected us: You offered me a list of more sync blocks than could possibly exist

????
比特币硬币 新浪微博

DNS 受托人ID:www-17755com、dns-17755com、kid-17755com

Offline puppies

  • Hero Member
  • *****
  • Posts: 1659
    • View Profile
  • BitShares: puppies
Like a moron I updated before bed
And after a 14 hour work day.   Missed  50 blocks overnight before I caught it.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
all working fine on the backup delegate .. gonna update my main machine now ... +5%

Offline Riverhead

Here is what I did.  Instructions are brief because I assume you've been through the compile once.

1) Change into the github bitsharesx cloned repository you made for 0.2.4

git pull origin
git checkout 0.3.0 (or 0.3.1 for a delegate)
git submodule init
git submodule update
./setnev.sh (not sure if this is required but it doesn't break anything)
cmake .
make

Make sure your bitsharesx is not running (either the GUI or the CLI). This is also particular to my setup.

sudo mv /usr/bin/bitshares_client /usr/bin/bitshares_client.0.2.4

change to the program/client directory

sudo cp bitshares_client /usr/bin/.

Are you also building the gui?  If so then from your github bitsharesx directory:

cmake -DINCLUDE_QT_WALLET=ON
make buildweb
make BitSharesX

The do the same routine to get BitsharesX into the /usr/bin directory.
« Last Edit: August 01, 2014, 06:07:49 pm by Riverhead »

Offline kokojie

  • Sr. Member
  • ****
  • Posts: 286
    • View Profile
how to easily upgrade from 0.2.3 on ubuntu 14? anyone have a guide?

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
>>> approve bitcoiners

Offline HackFisher

  • Hero Member
  • *****
  • Posts: 883
    • View Profile
Getting a build error on 0.3.1

Code: [Select]
[ 93%] Built target BitSharesX_automoc
make[2]: *** No rule to make target `programs/qt_wallet/htdocs/blank.html', needed by `programs/qt_wallet/qrc_htdocs.cpp'.  Stop.
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/all] Error 2
make: *** [all] Error 2

also getting error on git master branch.

Code: [Select]
[ 93%] Automoc for target BitSharesX
[ 93%] Built target BitSharesX_automoc
make[2]: *** No rule to make target `programs/qt_wallet/htdocs/img/bts-logo.svg', needed by `programs/qt_wallet/qrc_htdocs.cpp'.  Stop.
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/all] Error 2
make: *** [all] Error 2

You need to do
Code: [Select]
make buildwebfirst before you build qt_wallet,

or you can just disable qt_wallet by
Code: [Select]
-DINCLUDE_QT_WALLET=OFF
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.

Offline bitcoinerS

  • Hero Member
  • *****
  • Posts: 592
    • View Profile
Getting a build error on 0.3.1

Code: [Select]
[ 93%] Built target BitSharesX_automoc
make[2]: *** No rule to make target `programs/qt_wallet/htdocs/blank.html', needed by `programs/qt_wallet/qrc_htdocs.cpp'.  Stop.
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/all] Error 2
make: *** [all] Error 2

also getting error on git master branch.

Code: [Select]
[ 93%] Automoc for target BitSharesX
[ 93%] Built target BitSharesX_automoc
make[2]: *** No rule to make target `programs/qt_wallet/htdocs/img/bts-logo.svg', needed by `programs/qt_wallet/qrc_htdocs.cpp'.  Stop.
make[1]: *** [programs/qt_wallet/CMakeFiles/BitSharesX.dir/all] Error 2
make: *** [all] Error 2
« Last Edit: August 01, 2014, 03:21:09 pm by bitcoinerS »
>>> approve bitcoiners

Offline vikram



This is a good suggestion, don't upgrade for now. 0.3.1 for delegates is coming in several minutes

Please publish 0.3.1 Windows installer.
for windows user, I think 0.3.1 is the same with 0.3.0

0.3.0 has a problems for delegates, i'm interesting for Windows 0.3.1 to run it as delegate.


Sent from my iPhone using Tapatalk

Dac Sun may release an updated Windows GUI, but be aware that we currently do not test or support running a delegate outside the Linux command line interface.

Offline CLains

  • Hero Member
  • *****
  • Posts: 2606
    • View Profile
  • BitShares: clains



Offline Riverhead


Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
just upgrading my backup system and checking if it correctly produces bocks
+5% .. well done on the updates

Offline testz



This is a good suggestion, don't upgrade for now. 0.3.1 for delegates is coming in several minutes

Please publish 0.3.1 Windows installer.
for windows user, I think 0.3.1 is the same with 0.3.0

0.3.0 has a problems for delegates, i'm interesting for Windows 0.3.1 to run it as delegate.


Sent from my iPhone using Tapatalk

Offline emski

  • Hero Member
  • *****
  • Posts: 1282
    • View Profile
    • http://lnkd.in/nPbhxG
I'm getting the following message:

Peer 106.5.241.234:30579 disconnected us: You offered me a list of more sync blocks than could possibly exist

Code: [Select]
emski (unlocked) >>> info
{
  "blockchain_head_block_num": 108809,
  "blockchain_head_block_age": "4 seconds old",
  "blockchain_head_block_timestamp": "2014-08-01T07:29:00",
  "blockchain_average_delegate_participation": "97.12 %",
  "blockchain_delegate_pay_rate": "1.30777 BTSX",
  "blockchain_blocks_left_in_round": 69,
  "blockchain_confirmation_requirement": 1,
  "blockchain_accumulated_fees": "158,188.66702 BTSX",
  "blockchain_share_supply": "1,999,666,902.64558 BTSX",
  "blockchain_random_seed": "fac12862b14b64c4dd799e060c96700d27c8e3b4",
  "blockchain_database_version": 117,
  "blockchain_version": 109,
  "client_data_dir": "MASKED",
  "network_num_connections": 55,
  "network_num_connections_max": 200,
  "network_protocol_version": 104,
  "ntp_time": "2014-08-01T07:29:04",
  "ntp_error": -0.01404,
  "wallet_open": true,
  "wallet_unlocked": true,
  "wallet_unlocked_until": "44 years  in the future",
  "wallet_unlocked_until_timestamp": "1923-03-02T05:44:56",
  "wallet_scan_progress": "0.00 %",
  "wallet_block_production_enabled": true,
  "wallet_next_block_production_time": "6 seconds in the future",
  "wallet_next_block_production_timestamp": "2014-08-01T07:29:10",
  "wallet_version": 100
}

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi

This is a good suggestion, don't upgrade for now. 0.3.1 for delegates is coming in several minutes

Please publish 0.3.1 Windows installer.
for windows user, I think 0.3.1 is the same with 0.3.0

Offline testz


This is a good suggestion, don't upgrade for now. 0.3.1 for delegates is coming in several minutes

Please publish 0.3.1 Windows installer.

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I suggest don't update to this version,
seems _in_sync is not correct
delegate will missed block

If somebody missed block like me, here is a temporary patch
Code: [Select]
diff --git a/libraries/client/client.cpp b/libraries/client/client.cpp
index 709991a..70fba2b 100644
--- a/libraries/client/client.cpp
+++ b/libraries/client/client.cpp
@@ -744,7 +744,7 @@ config load_config( const fc::path& datadir )
               {
                   try
                   {
-                      FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
+                      //FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
                       FC_ASSERT( network_get_connection_count() >= _min_delegate_connection_count,
                                  "Client must have ${count} connections before you may produce blocks!",
                                  ("count",_min_delegate_connection_count) );

Thank you alt; we have backed out this change pending further review. All delegates please make sure to use 0.3.1. All other users can continue to 0.3.0.
we need more carefully now :)

Offline vikram

I suggest don't update to this version,
seems _in_sync is not correct
delegate will missed block

If somebody missed block like me, here is a temporary patch
Code: [Select]
diff --git a/libraries/client/client.cpp b/libraries/client/client.cpp
index 709991a..70fba2b 100644
--- a/libraries/client/client.cpp
+++ b/libraries/client/client.cpp
@@ -744,7 +744,7 @@ config load_config( const fc::path& datadir )
               {
                   try
                   {
-                      FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
+                      //FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
                       FC_ASSERT( network_get_connection_count() >= _min_delegate_connection_count,
                                  "Client must have ${count} connections before you may produce blocks!",
                                  ("count",_min_delegate_connection_count) );

Thank you alt; we have backed out this change pending further review. All delegates please make sure to use 0.3.1. All other users can continue to 0.3.0.

Offline DACSunlimited

  • Full Member
  • ***
  • Posts: 136
    • View Profile
I suggest don't update to this version,
seems _in_sync is not correct
delegate will missed block

If somebody missed block like me, here is a temporary patch
Code: [Select]
diff --git a/libraries/client/client.cpp b/libraries/client/client.cpp
index 709991a..70fba2b 100644
--- a/libraries/client/client.cpp
+++ b/libraries/client/client.cpp
@@ -744,7 +744,7 @@ config load_config( const fc::path& datadir )
               {
                   try
                   {
-                      FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
+                      //FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
                       FC_ASSERT( network_get_connection_count() >= _min_delegate_connection_count,
                                  "Client must have ${count} connections before you may produce blocks!",
                                  ("count",_min_delegate_connection_count) );

This is a good suggestion, don't upgrade for now. 0.3.1 for delegates is coming in several minutes
« Last Edit: August 01, 2014, 01:25:19 am by DACSunlimited »

Offline alt

  • Hero Member
  • *****
  • Posts: 2821
    • View Profile
  • BitShares: baozi
I suggest don't update to this version,
seems _in_sync is not correct
delegate will missed block

If somebody missed block like me, here is a temporary patch
Code: [Select]
diff --git a/libraries/client/client.cpp b/libraries/client/client.cpp
index 709991a..70fba2b 100644
--- a/libraries/client/client.cpp
+++ b/libraries/client/client.cpp
@@ -744,7 +744,7 @@ config load_config( const fc::path& datadir )
               {
                   try
                   {
-                      FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
+                      //FC_ASSERT( _in_sync, "Blockchain must be synced to produce blocks!" );
                       FC_ASSERT( network_get_connection_count() >= _min_delegate_connection_count,
                                  "Client must have ${count} connections before you may produce blocks!",
                                  ("count",_min_delegate_connection_count) );
« Last Edit: August 01, 2014, 01:18:17 am by alt »

Offline DACSunlimited

  • Full Member
  • ***
  • Posts: 136
    • View Profile

Offline ripplexiaoshan

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 2300
    • View Profile
  • BitShares: jademont
BTS committee member:jademont

lzr1900

  • Guest


Offline DACSunlimited

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Download and build from:

https://github.com/dacsunlimited/bitsharesx/releases/tag/0.3.1

Suggestions:

1. Active Delegate, be careful and make sure you are producing blocks during upgrading.
2. Note to delegates: Before you upgrade, make sure you install the ntp daemon, and check the ntp_error in info command.
Here is a guide about how to setup that on ubuntu.
http://www.cyberciti.biz/faq/debian-ubuntu-linux-install-ntpd/

Here might be a quick way to update, if ntp_error is not close to zero.
Code: [Select]
ntpdate -u pool.ntp.org
And please refer bytemaster's post:
https://bitsharestalk.org/index.php?topic=6344.msg84692#msg84692


Change Log
---
- added new vote_recommended slate selection method (wallet_transfer, wallet_transfer_from)
- added command to publish a public delegate slate for recommended voting (wallet_publish_slate)
- added command to recover deterministic account keys (wallet_recover_accounts)
- added automatic wallet backup feature (wallet_set_automatic_backups)
- wallet can now locally set approval for delegates, registered accounts, and unregistered local accounts (wallet_account_set_approval)
- desired connection count is automatically increased when block production is enabled (wallet_delegate_set_block_production)
- all wallets can now enable/disable transaction scanning and save the setting (wallet_set_transaction_scanning)
- delegates will now not produce blocks if chain is not synced
- new seed nodes are now always merged into client config
- improved re-syncing speed
- sync speed and time remaining is now printed when syncing
- fixed local account renaming conflict bug (wallet_account_rename)
- fixed wallet opening crash when not synced (wallet_open)
- fixed crashes on exit
- various networking fixes
- miscellaneous fixes
- fixed windows crash on start
- code sign OSX dmg

API Changes:
- blockchain_get_blockcount -> blockchain_get_block_count
- blockchain_get_blockhash -> blockchain_get_block_hash
- blockchain_get_config -> blockchain_get_info
- wallet_export_to_json -> wallet_backup_create
- wallet_create_from_json -> wallet_backup_restore
- wallet_scan_transaction -> wallet_transaction_scan
- wallet_remove_transaction -> wallet_transaction_remove
- wallet_rebroadcast_transaction -> wallet_transaction_rebroadcast
- wallet_delegate_set_transaction_scanning -> wallet_set_transaction_scanning
- wallet_approve -> wallet_account_set_approval
« Last Edit: August 01, 2014, 12:23:22 pm by vikram »