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

Proposed 1.7.0-b5 #3684

Merged
merged 16 commits into from
Dec 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 4 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,24 +226,12 @@ matrix:
- BUILD_TYPE=Debug
- NINJA_BUILD=false
# misc alternative compilers
- <<: *linux
compiler: gcc-7
name: gcc-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- BUILD_TYPE=Debug
- <<: *linux
compiler: gcc-9
name: gcc-9
env:
- MATRIX_EVAL="CC=gcc-9 && CXX=g++-9"
- BUILD_TYPE=Debug
- <<: *linux
compiler: clang-7
name: clang-7
env:
- MATRIX_EVAL="CC=clang-7 && CXX=clang++-7"
- BUILD_TYPE=Debug
- <<: *linux
compiler: clang-9
name: clang-9
Expand Down Expand Up @@ -274,8 +262,8 @@ matrix:
if: commit_message !~ /travis_run_/ OR commit_message =~ /travis_run_mac/
stage: build
os: osx
osx_image: xcode10.3
name: xcode10, debug
osx_image: xcode11.2
name: xcode11.2, debug
env:
# put NIH in non-cache location since it seems to
# cause failures when homebrew updates
Expand Down Expand Up @@ -313,7 +301,7 @@ matrix:
- travis_wait ${MAX_TIME_MIN} cmake --build . --parallel --verbose
- ./rippled --unittest --quiet --unittest-log --unittest-jobs ${NUM_PROCESSORS} ${TEST_EXTRA_ARGS}
- <<: *macos
name: xcode10, release
name: xcode11.2, release
before_script:
- export BLD_CONFIG=Release
- export CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -Dassert=ON"
Expand All @@ -323,7 +311,7 @@ matrix:
- export TEST_EXTRA_ARGS="--unittest-ipv6"
- <<: *macos
osx_image: xcode11.2
name: xcode11, debug
name: xcode11.2, debug
# windows
- &windows
if: commit_message !~ /travis_run_/ OR commit_message =~ /travis_run_win/
Expand Down
16 changes: 2 additions & 14 deletions Builds/CMake/RippledCore.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -272,19 +272,6 @@ install (
DESTINATION include/ripple/beast/core)
install (
FILES
src/ripple/beast/crypto/detail/mac_facade.h
src/ripple/beast/crypto/detail/ripemd_context.h
src/ripple/beast/crypto/detail/sha2_context.h
src/ripple/beast/crypto/ripemd.h
src/ripple/beast/crypto/sha2.h
DESTINATION include/ripple/beast/crypto)
install (
FILES
src/ripple/beast/cxx17/type_traits.h
DESTINATION include/ripple/beast/cxx17)
install (
FILES
src/ripple/beast/hash/endian.h
src/ripple/beast/hash/hash_append.h
src/ripple/beast/hash/meta.h
src/ripple/beast/hash/uhash.h
Expand Down Expand Up @@ -648,7 +635,9 @@ target_sources (rippled PRIVATE
src/ripple/shamap/impl/NodeFamily.cpp
src/ripple/shamap/impl/SHAMap.cpp
src/ripple/shamap/impl/SHAMapDelta.cpp
src/ripple/shamap/impl/SHAMapInnerNode.cpp
src/ripple/shamap/impl/SHAMapItem.cpp
src/ripple/shamap/impl/SHAMapLeafNode.cpp
src/ripple/shamap/impl/SHAMapNodeID.cpp
src/ripple/shamap/impl/SHAMapSync.cpp
src/ripple/shamap/impl/SHAMapTreeNode.cpp
Expand Down Expand Up @@ -895,7 +884,6 @@ target_sources (rippled PRIVATE
src/test/protocol/Seed_test.cpp
src/test/protocol/SeqProxy_test.cpp
src/test/protocol/TER_test.cpp
src/test/protocol/digest_test.cpp
src/test/protocol/types_test.cpp
#[===============================[
test sources:
Expand Down
3 changes: 0 additions & 3 deletions Builds/CMake/RippledInterface.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ target_compile_definitions (opts
BOOST_BEAST_ALLOW_DEPRECATED
BOOST_FILESYSTEM_DEPRECATED
>
$<$<BOOL:${beast_hashers}>:
USE_BEAST_HASHER
>
$<$<BOOL:${beast_no_unit_test_inline}>:BEAST_NO_UNIT_TEST_INLINE=1>
$<$<BOOL:${beast_disable_autolink}>:BEAST_DONT_AUTOLINK_TO_WIN32_LIBRARIES=1>
$<$<BOOL:${single_io_service_thread}>:RIPPLE_SINGLE_IO_SERVICE_THREAD=1>)
Expand Down
1 change: 0 additions & 1 deletion bin/ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ declare -a manual_tests=(
'ripple.consensus.ByzantineFailureSim'
'ripple.consensus.DistributedValidators'
'ripple.consensus.ScaleFreeSim'
'ripple.ripple_data.digest'
'ripple.tx.CrossingLimits'
'ripple.tx.FindOversizeCross'
'ripple.tx.Offer_manual'
Expand Down
1 change: 0 additions & 1 deletion bin/ci/ubuntu/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ else
# descending execution time (longest running tests at top)
declare -a manual_tests=(
'ripple.ripple_data.reduce_relay_simulate'
'ripple.ripple_data.digest'
'ripple.tx.Offer_manual'
'ripple.tx.CrossingLimits'
'ripple.tx.PlumpBook'
Expand Down
37 changes: 28 additions & 9 deletions cfg/rippled-example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,23 @@
# single host from consuming all inbound slots. If the value is not
# present the server will autoconfigure an appropriate limit.
#
# max_unknown_time = <number>
#
# The maximum amount of time, in seconds, that an outbound connection
# is allowed to stay in the "unknown" tracking state. This option can
# take any value between 300 and 1800 seconds, inclusive. If the option
# is not present the server will autoconfigure an appropriate limit.
#
# The current default (which is subject to change) is 600 seconds.
#
# max_diverged_time = <number>
#
# The maximum amount of time, in seconds, that an outbound connection
# is allowed to stay in the "diverged" tracking state. The option can
# take any value between 60 and 900 seconds, inclusive. If the option
# is not present the server will autoconfigure an appropriate limit.
#
# The current default (which is subject to change) is 300 seconds.
#
#
# [transaction_queue] EXPERIMENTAL
Expand Down Expand Up @@ -590,13 +607,13 @@
#
#-------------------------------------------------------------------------------
#
# 3. Ripple Protocol
# 3. Protocol
#
#-------------------
#
# These settings affect the behavior of the server instance with respect
# to Ripple payment protocol level activities such as validating and
# closing ledgers or adjusting fees in response to server overloads.
# to protocol level activities such as validating and closing ledgers
# adjusting fees in response to server overloads.
#
#
#
Expand All @@ -617,12 +634,6 @@
# Legal values are: "trusted" and "all". The default is "all".
#
#
# [node_size]
#
# Tunes the servers based on the expected load and available memory. Legal
# sizes are "tiny", "small", "medium", "large", and "huge". We recommend
# you start at the default and raise the setting if you have extra memory.
# The default is "tiny".
#
#
#
Expand Down Expand Up @@ -1191,6 +1202,14 @@
#
#-----------------
#
# [node_size]
#
# Tunes the servers based on the expected load and available memory. Legal
# sizes are "tiny", "small", "medium", "large", and "huge". We recommend
# you start at the default and raise the setting if you have extra memory.
# If no value is specified, the code assumes the proper size is "tiny". The
# default configuration file explicitly specifies "medium" as the size.
#
# [signing_support]
#
# Specifies whether the server will accept "sign" and "sign_for" commands
Expand Down
5 changes: 2 additions & 3 deletions src/ripple/app/consensus/RCLConsensus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,8 @@ RCLConsensus::Adaptor::onClose(
Serializer s(2048);
tx.first->add(s);
initialSet->addItem(
SHAMapItem(tx.first->getTransactionID(), std::move(s)),
true,
false);
SHAMapNodeType::tnTRANSACTION_NM,
SHAMapItem(tx.first->getTransactionID(), std::move(s)));
}

// Add pseudo-transactions to the set
Expand Down
6 changes: 0 additions & 6 deletions src/ripple/app/consensus/RCLCxPeerPos.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ class RCLCxPeerPos
Slice const& signature,
uint256 const& suppress,
Proposal&& proposal);

static char const*
getCountedObjectName()
{
return "RCLCxPeerPos::Data";
}
};

std::shared_ptr<Data> data_;
Expand Down
3 changes: 2 additions & 1 deletion src/ripple/app/consensus/RCLCxTx.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class RCLTxSet
insert(Tx const& t)
{
return map_->addItem(
SHAMapItem{t.id(), t.tx_.peekData()}, true, false);
SHAMapNodeType::tnTRANSACTION_NM,
SHAMapItem{t.id(), t.tx_.peekData()});
}

/** Remove a transaction from the set.
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/app/ledger/AcceptedLedgerTx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ std::string
AcceptedLedgerTx::getEscMeta() const
{
assert(!mRawMeta.empty());
return sqlEscape(mRawMeta);
return sqlBlobLiteral(mRawMeta);
}

void
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/app/ledger/AccountStateSF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ AccountStateSF::gotNode(
SHAMapHash const& nodeHash,
std::uint32_t ledgerSeq,
Blob&& nodeData,
SHAMapTreeNode::TNType) const
SHAMapNodeType) const
{
db_.store(
hotACCOUNT_NODE, std::move(nodeData), nodeHash.as_uint256(), ledgerSeq);
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/app/ledger/AccountStateSF.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class AccountStateSF : public SHAMapSyncFilter
SHAMapHash const& nodeHash,
std::uint32_t ledgerSeq,
Blob&& nodeData,
SHAMapTreeNode::TNType type) const override;
SHAMapNodeType type) const override;

boost::optional<Blob>
getNode(SHAMapHash const& nodeHash) const override;
Expand Down
4 changes: 2 additions & 2 deletions src/ripple/app/ledger/ConsensusTransSetSF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ ConsensusTransSetSF::gotNode(
SHAMapHash const& nodeHash,
std::uint32_t,
Blob&& nodeData,
SHAMapTreeNode::TNType type) const
SHAMapNodeType type) const
{
if (fromFilter)
return;

m_nodeCache.insert(nodeHash, nodeData);

if ((type == SHAMapTreeNode::tnTRANSACTION_NM) && (nodeData.size() > 16))
if ((type == SHAMapNodeType::tnTRANSACTION_NM) && (nodeData.size() > 16))
{
// this is a transaction, and we didn't have it
JLOG(j_.debug())
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/app/ledger/ConsensusTransSetSF.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ConsensusTransSetSF : public SHAMapSyncFilter
SHAMapHash const& nodeHash,
std::uint32_t ledgerSeq,
Blob&& nodeData,
SHAMapTreeNode::TNType type) const override;
SHAMapNodeType type) const override;

boost::optional<Blob>
getNode(SHAMapHash const& nodeHash) const override;
Expand Down
6 changes: 0 additions & 6 deletions src/ripple/app/ledger/InboundLedger.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,6 @@ class InboundLedger final : public PeerSet,
public:
using clock_type = beast::abstract_clock<std::chrono::steady_clock>;

static char const*
getCountedObjectName()
{
return "InboundLedger";
}

using PeerDataPairType =
std::pair<std::weak_ptr<Peer>, std::shared_ptr<protocol::TMLedgerData>>;

Expand Down
2 changes: 1 addition & 1 deletion src/ripple/app/ledger/InboundLedgers.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class InboundLedgers
public:
using clock_type = beast::abstract_clock<std::chrono::steady_clock>;

virtual ~InboundLedgers() = 0;
virtual ~InboundLedgers() = default;

// VFALCO TODO Should this be called findOrAdd ?
//
Expand Down
Loading