Skip to content

Commit

Permalink
Merge pull request #2412 from bitshares/release
Browse files Browse the repository at this point in the history
Merge release branch back into develop branch
  • Loading branch information
abitmore authored Apr 28, 2021
2 parents 518ddbe + 34341ee commit 3f3b115
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Download library sources
if: steps.cache-libs.outputs.cache-hit != 'true'
run: |
curl -LO https://dl.bintray.com/boostorg/release/${{ env.BOOST_DOTTED_VERSION }}/source/boost_${{ env.BOOST_VERSION }}.tar.bz2
curl -LO https://boostorg.jfrog.io/artifactory/main/release/${{ env.BOOST_DOTTED_VERSION }}/source/boost_${{ env.BOOST_VERSION }}.tar.bz2
curl -LO https://curl.haxx.se/download/curl-${{ env.CURL_VERSION }}.tar.bz2
curl -LO https://www.openssl.org/source/openssl-${{ env.OPENSSL_VERSION }}.tar.gz
curl -LO https://zlib.net/zlib-${{ env.ZLIB_VERSION }}.tar.gz
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Troglodactyl <troglodactyl@gmail.com>
VoR0220 <catalanor0220@gmail.com>
alt <pch957@163.com>
bitcube <root@seed.cubeconnex.com>
hammadsherwani <83015346+hammadsherwani@users.noreply.github.com>
lafona <lafona@protonmail.com>
liondani <liondani@gmx.com>
lososeg <ya.lososeg@gmail.com>
Expand Down
2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "BitShares-Core"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = "5.1.0"
PROJECT_NUMBER = "5.2.0"

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion docs
Submodule docs updated from 0a09eb to aa7661
1 change: 1 addition & 0 deletions libraries/egenesis/seed-nodes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
"seed2.xbts.io:1776", // xbts.io (Germany)
"seed1.bitshares.im:1776", // clone (USA)
"seed.bitshares.org:666", // bitshares.org (France)
"seed.bitshares.rocks:1776", // bitshares.rocks (USA)
"seeds.btsnodes.com:1776", // Community
2 changes: 1 addition & 1 deletion libraries/fc
Submodule fc updated 2 files
+1 −0 .mailmap
+2 −1 CONTRIBUTORS.txt
34 changes: 0 additions & 34 deletions libraries/net/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,40 +91,6 @@

#include "node_impl.hxx"

//#define ENABLE_DEBUG_ULOGS

#ifdef DEFAULT_LOGGER
# undef DEFAULT_LOGGER
#endif
#define DEFAULT_LOGGER "p2p"

#define INVOCATION_COUNTER(name) \
static size_t total_ ## name ## _counter = 0; \
static size_t active_ ## name ## _counter = 0; \
struct name ## _invocation_logger { \
size_t *total; \
size_t *active; \
name ## _invocation_logger(size_t *total, size_t *active) : \
total(total), active(active) \
{ \
++*total; \
++*active; \
dlog("NEWDEBUG: Entering " #name ", now ${total} total calls, ${active} active calls", ("total", *total)("active", *active)); \
} \
~name ## _invocation_logger() \
{ \
--*active; \
dlog("NEWDEBUG: Leaving " #name ", now ${total} total calls, ${active} active calls", ("total", *total)("active", *active)); \
} \
} invocation_logger(&total_ ## name ## _counter, &active_ ## name ## _counter)

//log these messages even at warn level when operating on the test network
#ifdef GRAPHENE_TEST_NETWORK
#define testnetlog wlog
#else
#define testnetlog(...) do {} while (0)
#endif

namespace graphene { namespace net { namespace detail {

void blockchain_tied_message_cache::block_accepted()
Expand Down
14 changes: 14 additions & 0 deletions libraries/net/node_impl.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ namespace bmi = boost::multi_index;

#define P2P_IN_DEDICATED_THREAD

//#define ENABLE_DEBUG_ULOGS

#ifdef DEFAULT_LOGGER
# undef DEFAULT_LOGGER
#endif
#define DEFAULT_LOGGER "p2p"

//log these messages even at warn level when operating on the test network
#ifdef GRAPHENE_TEST_NETWORK
#define testnetlog wlog
#else
#define testnetlog(...) do {} while (0)
#endif

/*******
* A class to wrap std::unordered_set for multithreading
*/
Expand Down
7 changes: 7 additions & 0 deletions tests/cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ std::shared_ptr<graphene::app::application> start_application(fc::temp_directory
auto sharable_cfg = std::make_shared<boost::program_options::variables_map>();
auto& cfg = *sharable_cfg;
server_port_number = fc::network::get_available_port();
auto p2p_port = server_port_number;
for( size_t i = 0; i < 10 && p2p_port == server_port_number; ++i )
{
p2p_port = fc::network::get_available_port();
}
BOOST_REQUIRE( p2p_port != server_port_number );
fc::set_option( cfg, "rpc-endpoint", string("127.0.0.1:") + std::to_string(server_port_number) );
fc::set_option( cfg, "p2p-endpoint", string("0.0.0.0:") + std::to_string(p2p_port) );
fc::set_option( cfg, "genesis-json", create_genesis_file(app_dir) );
fc::set_option( cfg, "seed-nodes", string("[]") );
fc::set_option( cfg, "custom-operations-start-block", uint32_t(1) );
Expand Down
3 changes: 2 additions & 1 deletion tests/performance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ of our current implementation. The subject was talked about in detail at
BitFest Amsterdam, Sep 22, 2018.

The original description of the 100,000 transactions per second test can be
found at https://bitshares.org/blog/2015/06/08/measuring-performance/ .
found at
https://web.archive.org/web/20181111215859/https://bitshares.org/blog/2015/06/08/measuring-performance/ .

Prepare
-------
Expand Down
2 changes: 0 additions & 2 deletions tests/performance/genesis_allocation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@

#include <fc/crypto/digest.hpp>

#include <boost/test/auto_unit_test.hpp>

#include <database_fixture.hpp>

extern uint32_t GRAPHENE_TESTING_GENESIS_TIMESTAMP;
Expand Down

0 comments on commit 3f3b115

Please sign in to comment.