Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge release branch back into develop branch #2412

Merged
merged 22 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8db4ae9
Merge pull request #2399 from bitshares/develop
abitmore Apr 19, 2021
1bbf05a
Find 2 different ports in cli_test for rpc and p2p
abitmore Apr 21, 2021
d352eca
Merge pull request #2411 from bitshares/fix-cli-test-listen-port
abitmore Apr 21, 2021
84166cc
Remove an unnecessary header include
abitmore Apr 22, 2021
d65c18e
Fix broken link
abitmore Apr 22, 2021
c737896
Merge pull request #2415 from bitshares/fix-unit-test-header
abitmore Apr 23, 2021
fe6c428
Merge pull request #2416 from bitshares/fix-broken-link
abitmore Apr 23, 2021
9dd8d64
Restore default logger of network module to "p2p"
abitmore Apr 24, 2021
bd2f34d
Update seed-nodes.txt
hammadsherwani Apr 24, 2021
aef4433
Update comment
abitmore Apr 24, 2021
12ee007
Merge pull request #2418 from bitshares/fix-p2p-log
abitmore Apr 24, 2021
accd72b
Merge pull request #2422 from hammadsherwani/patch-4
abitmore Apr 24, 2021
3da9500
Merge pull request #2423 from bitshares/update-seeds
abitmore Apr 25, 2021
11da12d
Remove unused code
abitmore Apr 25, 2021
ba0abc3
Merge pull request #2424 from bitshares/remove-unused-code
abitmore Apr 25, 2021
c9a96a8
Bump FC to include the contributors update
abitmore Apr 26, 2021
b1ceebc
Update boost source code download link
abitmore Apr 26, 2021
846e538
Merge pull request #2426 from bitshares/update-fc
abitmore Apr 26, 2021
22af85c
Bump docs version
abitmore Apr 27, 2021
a2c2dfd
Update version in Doxyfile
abitmore Apr 27, 2021
55a528f
Update contributors
abitmore Apr 27, 2021
34341ee
Merge pull request #2429 from bitshares/update-misc
abitmore Apr 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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