diff --git a/Builds/VisualStudio2013/RippleD.vcxproj b/Builds/VisualStudio2013/RippleD.vcxproj
index 951245e29..b14790c2e 100644
--- a/Builds/VisualStudio2013/RippleD.vcxproj
+++ b/Builds/VisualStudio2013/RippleD.vcxproj
@@ -270,8 +270,6 @@
True
-
-
True
@@ -3896,36 +3894,6 @@
..\..\src\websocketpp;%(AdditionalIncludeDirectories)
..\..\src\websocketpp;%(AdditionalIncludeDirectories)
-
-
-
- True
- True
-
-
-
-
- True
- True
-
-
-
-
-
-
- True
- True
-
-
-
-
-
-
- True
- True
-
-
-
@@ -3936,8 +3904,6 @@
True
True
-
-
diff --git a/Builds/VisualStudio2013/RippleD.vcxproj.filters b/Builds/VisualStudio2013/RippleD.vcxproj.filters
index f41e58e76..0bf6cffea 100644
--- a/Builds/VisualStudio2013/RippleD.vcxproj.filters
+++ b/Builds/VisualStudio2013/RippleD.vcxproj.filters
@@ -427,9 +427,6 @@
{843C622F-AA52-E6C5-D3EB-D4B6D564B395}
-
- {416459B4-BDA4-31D6-834A-88932E767F37}
-
{2C910562-8D0A-B115-B829-556779436F2F}
@@ -708,9 +705,6 @@
beast\asio\tests
-
- beast\asio
-
beast\boost
@@ -4548,39 +4542,6 @@
ripple\unity
-
- ripple\unl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl\impl
-
-
- ripple\unl
-
ripple\unl\tests
@@ -4590,9 +4551,6 @@
ripple\unl\tests
-
- ripple\unl
-
ripple\websocket
diff --git a/src/BeastConfig.h b/src/BeastConfig.h
index 4bd22f61a..485130755 100644
--- a/src/BeastConfig.h
+++ b/src/BeastConfig.h
@@ -164,13 +164,6 @@
#define RIPPLE_SINGLE_IO_SERVICE_THREAD 0
#endif
-/** Config: RIPPLE_HOOK_VALIDATORS
- Activates code for handling validations and validators (work in progress).
-*/
-#ifndef RIPPLE_HOOK_VALIDATORS
-#define RIPPLE_HOOK_VALIDATORS 0
-#endif
-
/** Config: RIPPLE_ENABLE_TICKETS
Enables processing of ticket transactions
*/
diff --git a/src/ripple/app/ledger/impl/LedgerMaster.cpp b/src/ripple/app/ledger/impl/LedgerMaster.cpp
index 7866d9fcb..530ea2d47 100644
--- a/src/ripple/app/ledger/impl/LedgerMaster.cpp
+++ b/src/ripple/app/ledger/impl/LedgerMaster.cpp
@@ -45,7 +45,6 @@
#include
#include
#include
-#include
#include
#include
#include //
@@ -276,11 +275,6 @@ public:
getApp().getSHAMapStore().onLedgerClosed (getValidatedLedger());
mLedgerHistory.validatedLedger (l);
getApp().getAmendmentTable().doValidatedLedger (l);
-
- #if RIPPLE_HOOK_VALIDATORS
- getApp().getValidators().onLedgerClosed (l->info().seq,
- l->getHash(), l->info().parentHash);
- #endif
}
void setPubLedger(Ledger::ref l)
diff --git a/src/ripple/app/main/Application.cpp b/src/ripple/app/main/Application.cpp
index 98417e6ce..bbcafa53d 100644
--- a/src/ripple/app/main/Application.cpp
+++ b/src/ripple/app/main/Application.cpp
@@ -64,7 +64,6 @@
#include
#include
#include
-#include
#include
#include
#include
@@ -291,7 +290,6 @@ public:
std::unique_ptr m_networkOPs;
std::unique_ptr m_deprecatedUNL;
std::unique_ptr serverHandler_;
- std::unique_ptr m_validators;
std::unique_ptr m_amendmentTable;
std::unique_ptr mFeeTrack;
std::unique_ptr mHashRouter;
@@ -407,9 +405,6 @@ public:
, serverHandler_ (make_ServerHandler (*m_networkOPs, get_io_service (),
*m_jobQueue, *m_networkOPs, *m_resourceManager, *m_collectorManager))
- , m_validators (unl::make_Manager(*this, get_io_service(),
- m_logs.journal("UNL"), getConfig ()))
-
, m_amendmentTable (make_AmendmentTable
(weeks(2), MAJORITY_FRACTION,
m_logs.journal("AmendmentTable")))
@@ -453,7 +448,6 @@ public:
// VFALCO HACK
m_nodeStoreScheduler.setJobQueue (*m_jobQueue);
- add (*m_validators);
add (m_ledgerMaster->getPropertySource ());
add (*serverHandler_);
}
@@ -570,11 +564,6 @@ public:
return cachedSLEs_;
}
- unl::Manager& getValidators ()
- {
- return *m_validators;
- }
-
AmendmentTable& getAmendmentTable()
{
return *m_amendmentTable;
diff --git a/src/ripple/app/main/Application.h b/src/ripple/app/main/Application.h
index c169867a7..9d6d4f44f 100644
--- a/src/ripple/app/main/Application.h
+++ b/src/ripple/app/main/Application.h
@@ -98,7 +98,6 @@ public:
virtual JobQueue& getJobQueue () = 0;
virtual NodeCache& getTempNodeCache () = 0;
virtual CachedSLEs& cachedSLEs() = 0;
- virtual unl::Manager& getValidators () = 0;
virtual AmendmentTable& getAmendmentTable() = 0;
virtual IHashRouter& getHashRouter () = 0;
virtual LoadFeeTrack& getFeeTrack () = 0;
diff --git a/src/ripple/overlay/impl/OverlayImpl.cpp b/src/ripple/overlay/impl/OverlayImpl.cpp
index b6a914b1c..9b00fe2e0 100644
--- a/src/ripple/overlay/impl/OverlayImpl.cpp
+++ b/src/ripple/overlay/impl/OverlayImpl.cpp
@@ -111,18 +111,6 @@ OverlayImpl::Timer::on_timer (error_code ec)
overlay_.sendEndpoints();
overlay_.autoConnect();
- {
- std::lock_guard<
- std::recursive_mutex> lock (overlay_.mutex_);
- for (auto const& e : overlay_.m_publicKeyMap)
- {
- auto const sp = e.second.lock();
- if (sp)
- if (sp->unlHorizon_->shouldDrop())
- sp->fail("Poor UNL horizon");
- }
- }
-
if ((++overlay_.timer_count_ % Tuning::checkSeconds) == 0)
overlay_.check();
diff --git a/src/ripple/overlay/impl/PeerImp.cpp b/src/ripple/overlay/impl/PeerImp.cpp
index 609c649e8..01c274aad 100644
--- a/src/ripple/overlay/impl/PeerImp.cpp
+++ b/src/ripple/overlay/impl/PeerImp.cpp
@@ -81,8 +81,6 @@ PeerImp::PeerImp (id_t id, endpoint_type remote_endpoint,
, fee_ (Resource::feeLightPeer)
, slot_ (slot)
, http_message_(std::move(request))
- , unlHorizon_(getApp().getValidators().insert(id,
- slotToHorizonKind(*slot_)))
{
}
@@ -1806,11 +1804,6 @@ PeerImp::checkValidation (Job&, STValidation::pointer val,
return;
}
- #if RIPPLE_HOOK_VALIDATORS
- getApp().getValidators().onMessage(
- unlHorizon_, *packet, *val);
- #endif
-
if (getApp().getOPs ().recvValidation(
val, std::to_string(id())))
overlay_.relay(*packet, signingHash);
diff --git a/src/ripple/overlay/impl/PeerImp.h b/src/ripple/overlay/impl/PeerImp.h
index 27f9cad2c..68cfe3e0f 100644
--- a/src/ripple/overlay/impl/PeerImp.h
+++ b/src/ripple/overlay/impl/PeerImp.h
@@ -33,7 +33,7 @@
#include
#include
#include
-#include
+#include
#include
#include
#include
@@ -160,7 +160,6 @@ private:
int large_sendq_ = 0;
int no_ping_ = 0;
std::unique_ptr load_event_;
- std::unique_ptr unlHorizon_;
bool hopsAware_ = false;
friend class OverlayImpl;
@@ -436,16 +435,6 @@ private:
state_ = new_state;
}
- unl::Horizon::Kind
- slotToHorizonKind (PeerFinder::Slot const& slot)
- {
- if(slot.fixed())
- return unl::Horizon::kindTrusted;
- if(slot.inbound())
- return unl::Horizon::kindUntrusted;
- return unl::Horizon::kindManaged;
- }
-
//--------------------------------------------------------------------------
void
@@ -521,8 +510,6 @@ PeerImp::PeerImp (std::unique_ptr&& ssl_bundle,
, fee_ (Resource::feeLightPeer)
, slot_ (std::move(slot))
, http_message_(std::move(response))
- , unlHorizon_(getApp().getValidators().insert(id,
- slotToHorizonKind(*slot_)))
{
read_buffer_.commit (boost::asio::buffer_copy(read_buffer_.prepare(
boost::asio::buffer_size(buffers)), buffers));
diff --git a/src/ripple/unity/unl.cpp b/src/ripple/unity/unl.cpp
index 71929aa10..107b1eb20 100644
--- a/src/ripple/unity/unl.cpp
+++ b/src/ripple/unity/unl.cpp
@@ -19,10 +19,5 @@
#include
-#include
-#include
-#include
-#include
-
#include
#include
diff --git a/src/ripple/unl/Horizon.h b/src/ripple/unl/Horizon.h
deleted file mode 100644
index 7e9b4fe11..000000000
--- a/src/ripple/unl/Horizon.h
+++ /dev/null
@@ -1,54 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of rippled: https://github.com/ripple/rippled
- Copyright (c) 2012, 2013 Ripple Labs Inc.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef RIPPLE_UNL_HORIZON_H_INCLUDED
-#define RIPPLE_UNL_HORIZON_H_INCLUDED
-
-namespace ripple {
-namespace unl {
-
-/** Maintains validator horizon statistics on a connection. */
-class Horizon
-{
-public:
- enum Kind
- {
- /* Outbound made by autoconnect.
- Can be dropped.
- */
- kindManaged,
-
- /* Inbound. */
- kindUntrusted,
-
- /* Fixed or cluster peer.
- Can't be dropped.
- */
- kindTrusted
- };
-
- virtual ~Horizon() = default;
-
- virtual bool shouldDrop() = 0;
-};
-
-}
-}
-
-#endif
diff --git a/src/ripple/unl/UNLManager.h b/src/ripple/unl/UNLManager.h
deleted file mode 100644
index 2dd9acd64..000000000
--- a/src/ripple/unl/UNLManager.h
+++ /dev/null
@@ -1,83 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of rippled: https://github.com/ripple/rippled
- Copyright (c) 2012, 2013 Ripple Labs Inc.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef RIPPLE_UNL_MANAGER_H_INCLUDED
-#define RIPPLE_UNL_MANAGER_H_INCLUDED
-
-#include "ripple.pb.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-namespace ripple {
-namespace unl {
-
-/** Maintains the list of chosen validators.
- The algorithm for acquiring, building, and calculating metadata on
- the list of chosen validators is critical to the health of the network.
- All operations are performed asynchronously on an internal thread.
-*/
-class Manager : public beast::PropertyStream::Source
-{
-protected:
- Manager();
-
-public:
- /** Destroy the object.
- Any pending source fetch operations are aborted. This will block
- until any pending database I/O has completed and the thread has
- stopped.
- */
- virtual ~Manager() = default;
-
- virtual
- std::unique_ptr
- insert (int id, Horizon::Kind kind) = 0;
-
- virtual
- void
- erase (std::unique_ptr c) = 0;
-
- /** Called when a signed validation is received
- Preconditions:
- Signature check passed
- Effects:
- */
- virtual
- void
- onMessage (std::unique_ptr const& h,
- protocol::TMValidation const& m,
- STValidation const& v) = 0;
-
- /** Called when a ledger is built. */
- virtual
- void
- onLedgerClosed (LedgerIndex index,
- LedgerHash const& hash, LedgerHash const& parent) = 0;
-};
-
-}
-}
-
-#endif
diff --git a/src/ripple/unl/impl/BasicHorizon.cpp b/src/ripple/unl/impl/BasicHorizon.cpp
deleted file mode 100644
index da958c71b..000000000
--- a/src/ripple/unl/impl/BasicHorizon.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of rippled: https://github.com/ripple/rippled
- Copyright (c) 2012, 2013 Ripple Labs Inc.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#include
-#include
-
-namespace ripple {
-namespace unl {
-
-}
-}
diff --git a/src/ripple/unl/impl/BasicHorizon.h b/src/ripple/unl/impl/BasicHorizon.h
deleted file mode 100644
index 7fce1e09a..000000000
--- a/src/ripple/unl/impl/BasicHorizon.h
+++ /dev/null
@@ -1,254 +0,0 @@
-//------------------------------------------------------------------------------
-/*
- This file is part of rippled: https://github.com/ripple/rippled
- Copyright (c) 2012, 2013 Ripple Labs Inc.
-
- Permission to use, copy, modify, and/or distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
-
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-*/
-//==============================================================================
-
-#ifndef RIPPLE_UNL_BASICHORIZON_H_INCLUDED
-#define RIPPLE_UNL_BASICHORIZON_H_INCLUDED
-
-#include "ripple.pb.h"
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include