Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7897 from EOSIO/merge-release-1.8.3-to-master
Browse files Browse the repository at this point in the history
Merge release 1.8.3 to master
  • Loading branch information
arhag authored Sep 12, 2019
2 parents 9475b43 + eaf18fe commit 7116e88
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .cicd/generate-pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@ cat <<EOF
- wait
- label: ":git: Git Submodule Regression Check"
command:
- "./.cicd/submodule-regression-check.sh"
command: "./.cicd/submodule-regression-check.sh"
agents:
queue: "automation-basic-builder-fleet"
timeout: ${TIMEOUT:-5}
Expand Down
2 changes: 2 additions & 0 deletions .cicd/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ set -eo pipefail
# tests
if [[ $(uname) == 'Darwin' ]]; then # macOS
export PATH=$PATH:~/mongodb/bin
set +e # defer error handling to end
./"$@"
EXIT_STATUS=$?
else # Linux
. $HELPERS_DIR/file-hash.sh $CICD_DIR/platforms/$IMAGE_TAG.dockerfile
echo "$ docker run --rm --init -v $(pwd):$MOUNTED_DIR $(buildkite-intrinsics) $FULL_TAG bash -c \"$MOUNTED_DIR/$@\""
set +e # defer error handling to end
eval docker run --rm --init -v $(pwd):$MOUNTED_DIR $(buildkite-intrinsics) $FULL_TAG bash -c \"$MOUNTED_DIR/$@\"
EXIT_STATUS=$?
fi
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ set( CXX_STANDARD_REQUIRED ON)

set(VERSION_MAJOR 1)
set(VERSION_MINOR 8)
set(VERSION_PATCH 2)
set(VERSION_PATCH 3)
#set(VERSION_SUFFIX develop)

if(VERSION_SUFFIX)
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,22 @@ $ brew remove eosio

#### Ubuntu 18.04 Package Install
```sh
$ wget https://github.com/eosio/eos/releases/download/v1.8.2/eosio_1.8.2-1-ubuntu-18.04_amd64.deb
$ sudo apt install ./eosio_1.8.2-1-ubuntu-18.04_amd64.deb
$ wget https://github.com/eosio/eos/releases/download/v1.8.3/eosio_1.8.3-1-ubuntu-18.04_amd64.deb
$ sudo apt install ./eosio_1.8.3-1-ubuntu-18.04_amd64.deb
```
#### Ubuntu 16.04 Package Install
```sh
$ wget https://github.com/eosio/eos/releases/download/v1.8.2/eosio_1.8.2-1-ubuntu-16.04_amd64.deb
$ sudo apt install ./eosio_1.8.2-1-ubuntu-16.04_amd64.deb
$ wget https://github.com/eosio/eos/releases/download/v1.8.3/eosio_1.8.3-1-ubuntu-16.04_amd64.deb
$ sudo apt install ./eosio_1.8.3-1-ubuntu-16.04_amd64.deb
```
#### Ubuntu Package Uninstall
```sh
$ sudo apt remove eosio
```
#### Centos RPM Package Install
```sh
$ wget https://github.com/eosio/eos/releases/download/v1.8.2/eosio-1.8.2-1.el7.x86_64.rpm
$ sudo yum install ./eosio-1.8.2-1.el7.x86_64.rpm
$ wget https://github.com/eosio/eos/releases/download/v1.8.3/eosio-1.8.3-1.el7.x86_64.rpm
$ sudo yum install ./eosio-1.8.3-1.el7.x86_64.rpm
```
#### Centos RPM Package Uninstall
```sh
Expand Down
2 changes: 1 addition & 1 deletion plugins/net_plugin/include/eosio/net_plugin/net_plugin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace eosio {

size_t num_peers() const;
private:
std::unique_ptr<class net_plugin_impl> my;
std::shared_ptr<class net_plugin_impl> my;
};

}
Expand Down
23 changes: 16 additions & 7 deletions plugins/net_plugin/net_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,8 @@ namespace eosio {
//
// 3 my head block num < peer head block num - update sync state and send a catchup request
// 4 my head block num >= peer block num send a notice catchup if this is not the first generation
// 4.1 if peer appears to be on a different fork ( our_id_for( msg.head_num ) != msg.head_id )
// then request peer's blocks
//
//-----------------------------

Expand Down Expand Up @@ -1499,10 +1501,12 @@ namespace eosio {
c->enqueue( note );
}
c->syncing = true;
request_message req;
req.req_blocks.mode = catch_up;
req.req_trx.mode = none;
c->enqueue( req );
if( cc.get_block_id_for_num( msg.head_num ) != msg.head_id ) {
request_message req;
req.req_blocks.mode = catch_up;
req.req_trx.mode = none;
c->enqueue( req );
}
return;
}
fc_elog( logger, "sync check failed to resolve status" );
Expand All @@ -1519,13 +1523,13 @@ namespace eosio {
}
}
if( req.req_blocks.mode == catch_up ) {
c->fork_head = id;
c->fork_head_num = num;
fc_ilog( logger, "got a catch_up notice while in ${s}, fork head num = ${fhn} target LIB = ${lib} next_expected = ${ne}",
("s",stage_str(state))("fhn",num)("lib",sync_known_lib_num)("ne", sync_next_expected_num) );
if (state == lib_catchup)
return false;
set_state(head_catchup);
c->fork_head = id;
c->fork_head_num = num;
}
else {
c->fork_head = block_id_type();
Expand Down Expand Up @@ -2909,7 +2913,7 @@ namespace eosio {
( "connection-cleanup-period", bpo::value<int>()->default_value(def_conn_retry_wait), "number of seconds to wait before cleaning up dead connections")
( "max-cleanup-time-msec", bpo::value<int>()->default_value(10), "max connection cleanup time per cleanup call in millisec")
( "network-version-match", bpo::value<bool>()->default_value(false),
"True to require exact match of peer network version.")
"DEPRECATED, needless restriction. True to require exact match of peer network version.")
( "net-threads", bpo::value<uint16_t>()->default_value(my->thread_pool_size),
"Number of worker threads in net_plugin thread pool" )
( "sync-fetch-span", bpo::value<uint32_t>()->default_value(def_sync_fetch_span), "number of blocks to retrieve in a chunk from any individual peer during synchronization")
Expand Down Expand Up @@ -2938,6 +2942,8 @@ namespace eosio {
peer_log_format = options.at( "peer-log-format" ).as<string>();

my->network_version_match = options.at( "network-version-match" ).as<bool>();
if( my->network_version_match )
wlog( "network-version-match is DEPRECATED as it is a needless restriction" );

my->sync_master.reset( new sync_manager( options.at( "sync-fetch-span" ).as<uint32_t>()));
my->dispatcher.reset( new dispatch_manager );
Expand Down Expand Up @@ -3118,6 +3124,9 @@ namespace eosio {
if( my->thread_pool ) {
my->thread_pool->stop();
}

app().post( 0, [me = my](){} ); // keep my pointer alive until queue is drained

fc_ilog( logger, "exit shutdown" );
}
FC_CAPTURE_AND_RETHROW()
Expand Down
5 changes: 2 additions & 3 deletions plugins/producer_plugin/producer_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,9 +852,8 @@ void producer_plugin::plugin_shutdown() {
if( my->_thread_pool ) {
my->_thread_pool->stop();
}
my->_accepted_block_connection.reset();
my->_accepted_block_header_connection.reset();
my->_irreversible_block_connection.reset();

app().post( 0, [me = my](){} ); // keep my pointer alive until queue is drained
}

void producer_plugin::handle_sighup() {
Expand Down
1 change: 1 addition & 0 deletions programs/cleos/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2329,6 +2329,7 @@ int main( int argc, char** argv ) {
setlocale(LC_ALL, "");
bindtextdomain(locale_domain, locale_path);
textdomain(locale_domain);
fc::logger::get(DEFAULT_LOGGER).set_log_level(fc::log_level::debug);
context = eosio::client::http::create_http_context();
wallet_url = default_wallet_url;

Expand Down
12 changes: 8 additions & 4 deletions tests/Cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,10 +1289,14 @@ def bootstrap(self, biosNode, totalNodes, prodCount, totalProducers, pfSetupPoli
if not biosNode.waitForTransInBlock(transId):
Utils.Print("ERROR: Failed to validate transaction %s got rolled into a block on server port %d." % (transId, biosNode.port))
return None
action="init"
data="{\"version\":0,\"core\":\"4,%s\"}" % (CORE_SYMBOL)
opts="--permission %s@active" % (eosioAccount.name)
trans=biosNode.pushMessage(eosioAccount.name, action, data, opts)

# Only call init if the system contract is loaded
if loadSystemContract:
action="init"
data="{\"version\":0,\"core\":\"4,%s\"}" % (CORE_SYMBOL)
opts="--permission %s@active" % (eosioAccount.name)
trans=biosNode.pushMessage(eosioAccount.name, action, data, opts)

Utils.Print("Cluster bootstrap done.")

return biosNode
Expand Down

0 comments on commit 7116e88

Please sign in to comment.