BitShares Forum

Main => General Discussion => Topic started by: DACSunlimited on August 01, 2014, 12:05:37 am

Title: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: DACSunlimited on August 01, 2014, 12:05:37 am
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
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: daidai on August 01, 2014, 12:49:01 am
well done!
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: lzr1900 on August 01, 2014, 01:08:41 am
still crashed on exit..(osx)
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: ripplexiaoshan on August 01, 2014, 01:10:52 am
The avatar can display now, yeah +5%
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: DACSunlimited on August 01, 2014, 01:11:31 am
still crashed on exit..(osx)

known issue when release.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: alt on August 01, 2014, 01:13:39 am
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) );
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: DACSunlimited on August 01, 2014, 01:23:13 am
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
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: vikram on August 01, 2014, 01:41:45 am
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.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: alt on August 01, 2014, 01:51:26 am
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 :)
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: testz on August 01, 2014, 05:02:46 am

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.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.0
Post by: alt on August 01, 2014, 07:13:30 am

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
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: emski on August 01, 2014, 07:28:56 am
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
}
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: testz on August 01, 2014, 09:02:59 am


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
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: xeroc on August 01, 2014, 09:31:29 am
just upgrading my backup system and checking if it correctly produces bocks
+5% .. well done on the updates
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: Riverhead on August 01, 2014, 11:58:21 am
Updated.  Great work!
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: emski on August 01, 2014, 12:00:15 pm
Updated.  Great work!
Update your signature too.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: Riverhead on August 01, 2014, 12:09:36 pm
Updated.  Great work!
Update your signature too.
Done, thank you.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: CLains on August 01, 2014, 12:12:58 pm
Keep up the good work guys!  +5%
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: vikram on August 01, 2014, 12:25:56 pm


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.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: bitcoinerS on August 01, 2014, 03:16:56 pm
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
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: HackFisher on August 01, 2014, 03:23:36 pm
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
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: bitcoinerS on August 01, 2014, 03:41:52 pm
Thanks.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: kokojie on August 01, 2014, 05:36:49 pm
how to easily upgrade from 0.2.3 on ubuntu 14? anyone have a guide?
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: Riverhead on August 01, 2014, 06:04:48 pm
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.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: xeroc on August 01, 2014, 06:06:29 pm
all working fine on the backup delegate .. gonna update my main machine now ... +5%
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: puppies on August 01, 2014, 08:22:05 pm
Like a moron I updated before bed
And after a 14 hour work day.   Missed  50 blocks overnight before I caught it.
Title: Re: Delegates and seed nodes, upgrade your client version to 0.3.1
Post by: xweng on August 03, 2014, 02:54:02 am
Code: [Select]
Peer 106.5.241.47:23652 disconnected us: You offered me a list of more sync blocks than could possibly exist

????