mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
fixes need after rebase onto 1.9.0-b1
This commit is contained in:
@@ -1175,7 +1175,7 @@ public:
|
||||
getInboundLedgers().sweep();
|
||||
getLedgerReplayer().sweep();
|
||||
m_acceptedLedgerCache.sweep();
|
||||
cachedSLEs_.expire();
|
||||
cachedSLEs_.sweep();
|
||||
if (sidechainFederator_)
|
||||
sidechainFederator_->sweep();
|
||||
|
||||
|
||||
@@ -959,7 +959,7 @@ Federator::payTxn(
|
||||
seq,
|
||||
signingPK = signingPK_,
|
||||
signingSK = signingSK_,
|
||||
j = j_](Job&) mutable {
|
||||
j = j_]() mutable {
|
||||
auto const txnJson = detail::getTxn(
|
||||
thisChainSrcAccount, dstAccount, amt, seq, std::move(memos));
|
||||
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include <ripple/protocol/Issue.h>
|
||||
#include <ripple/protocol/STAmount.h>
|
||||
#include <ripple/protocol/TER.h>
|
||||
#include <beast/utility/Journal.h>
|
||||
|
||||
#include <boost/format.hpp>
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ SidechainListener::send(
|
||||
RpcCallback onResponse)
|
||||
{
|
||||
std::weak_ptr<SidechainListener> selfWeak = shared_from_this();
|
||||
auto job = [cmd, params, onResponse, selfWeak](Job&) {
|
||||
auto job = [cmd, params, onResponse, selfWeak]() {
|
||||
auto self = selfWeak.lock();
|
||||
if (!self)
|
||||
return;
|
||||
|
||||
@@ -80,7 +80,7 @@ SignatureCollector::signAndSubmit(Json::Value const& txJson)
|
||||
chain =
|
||||
isMainChain_ ? Federator::mainChain : Federator::sideChain,
|
||||
f = federator_.weak_from_this(),
|
||||
j = j_](Job&) mutable {
|
||||
j = j_]() mutable {
|
||||
auto federator = f.lock();
|
||||
if (!federator)
|
||||
return;
|
||||
|
||||
@@ -91,12 +91,7 @@ private:
|
||||
add(jtTRANSACTION, "transaction", maxLimit, 250ms, 1000ms);
|
||||
add(jtBATCH, "batch", maxLimit, 250ms, 1000ms);
|
||||
// TODO chose ave latency and peak latency numbers
|
||||
add(jtFEDERATORSIGNATURE,
|
||||
"federatorSignature",
|
||||
maxLimit,
|
||||
false,
|
||||
250ms,
|
||||
1000ms);
|
||||
add(jtFEDERATORSIGNATURE, "federatorSignature", maxLimit, 250ms, 1000ms);
|
||||
add(jtADVANCE, "advanceLedger", maxLimit, 0ms, 0ms);
|
||||
add(jtPUBLEDGER, "publishNewLedger", maxLimit, 3000ms, 4500ms);
|
||||
add(jtTXN_DATA, "fetchTxnData", 5, 0ms, 0ms);
|
||||
|
||||
@@ -40,13 +40,13 @@
|
||||
#include <ripple/overlay/impl/PeerImp.h>
|
||||
#include <ripple/overlay/impl/Tuning.h>
|
||||
#include <ripple/overlay/predicates.h>
|
||||
#include <ripple/protocol/SField.h>
|
||||
#include <ripple/protocol/digest.h>
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/beast/core/ostream.hpp>
|
||||
|
||||
#include "protocol/SField.h"
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
@@ -3106,7 +3106,7 @@ PeerImp::onMessage(
|
||||
seq,
|
||||
m,
|
||||
j = sidechainJ,
|
||||
sig = std::move(sig)](Job&) mutable {
|
||||
sig = std::move(sig)]() mutable {
|
||||
auto& hashRouter = self->app_.getHashRouter();
|
||||
if (auto const toSkip = hashRouter.shouldRelay(suppression))
|
||||
{
|
||||
@@ -3229,7 +3229,7 @@ PeerImp::onMessage(
|
||||
m,
|
||||
j = sidechainJ,
|
||||
chain = *dstChain,
|
||||
sig = std::move(sig)](Job&) mutable {
|
||||
sig = std::move(sig)]() mutable {
|
||||
auto& hashRouter = self->app_.getHashRouter();
|
||||
if (auto const toSkip = hashRouter.shouldRelay(suppression))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user