mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Tidy up UNL module:
* Renamed module to unl * Renamed classes and members * Removed cyclic dependency in Horizon
This commit is contained in:
committed by
Nik Bougalis
parent
5d2d88209f
commit
2bfae2f0ac
@@ -81,7 +81,8 @@ PeerImp::PeerImp (id_t id, endpoint_type remote_endpoint,
|
||||
, fee_ (Resource::feeLightPeer)
|
||||
, slot_ (slot)
|
||||
, http_message_(std::move(request))
|
||||
, validatorsConnection_(getApp().getValidators().newConnection(id))
|
||||
, unlHorizon_(getApp().getValidators().insert(id,
|
||||
slotToHorizonKind(*slot_)))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -425,7 +426,10 @@ PeerImp::close()
|
||||
void
|
||||
PeerImp::fail(std::string const& reason)
|
||||
{
|
||||
assert(strand_.running_in_this_thread());
|
||||
if(! strand_.running_in_this_thread())
|
||||
return strand_.post(std::bind (
|
||||
(void(Peer::*)(std::string const&))&PeerImp::fail,
|
||||
shared_from_this(), reason));
|
||||
if (socket_.is_open())
|
||||
if (journal_.debug) journal_.debug <<
|
||||
reason;
|
||||
@@ -1803,7 +1807,8 @@ PeerImp::checkValidation (Job&, STValidation::pointer val,
|
||||
}
|
||||
|
||||
#if RIPPLE_HOOK_VALIDATORS
|
||||
validatorsConnection_->onValidation(*val);
|
||||
getApp().getValidators().onMessage(
|
||||
unlHorizon_, *packet, *val);
|
||||
#endif
|
||||
|
||||
if (getApp().getOPs ().recvValidation(
|
||||
|
||||
Reference in New Issue
Block a user