|
xrpld
|
Simulate a network peer. More...


Public Member Functions | |
| TestPeer (bool enableLedgerReplay) | |
| void | send (std::shared_ptr< Message > const &m) override |
| beast::ip::Endpoint | getRemoteAddress () const override |
| void | charge (resource::Charge const &fee, std::string const &context={}) override |
| id_t | id () const override |
| bool | cluster () const override |
| bool | isHighLatency () const override |
| int | getScore (bool) const override |
| PublicKey const & | getNodePublic () const override |
| json::Value | json () override |
| bool | supportsFeature (ProtocolFeature f) const override |
| std::optional< std::size_t > | publisherListSequence (PublicKey const &) const override |
| void | setPublisherListSequence (PublicKey const &, std::size_t const) override |
| uint256 | getClosedLedgerHash () const override |
| bool | hasLedger (uint256 const &hash, std::uint32_t seq) const override |
| void | ledgerRange (std::uint32_t &minSeq, std::uint32_t &maxSeq) const override |
| bool | hasTxSet (uint256 const &hash) const override |
| void | cycleStatus () override |
| bool | hasRange (std::uint32_t uMin, std::uint32_t uMax) override |
| bool | compressionEnabled () const override |
| void | sendTxQueue () override |
| void | addTxQueue (uint256 const &) override |
| void | removeTxQueue (uint256 const &) override |
| bool | txReduceRelayEnabled () const override |
| std::string const & | fingerprint () const override |
Public Attributes | |
| std::string | fingerprint_ |
| bool | ledgerReplayEnabled_ |
| PublicKey | nodePublicKey_ |
| int | id |
| std::set< int > | set |
Simulate a network peer.
Depending on the configured PeerFeature, it either supports the ProtocolFeature::LedgerReplay or not
Definition at line 272 of file LedgerReplay_test.cpp.
| xrpl::test::TestPeer::TestPeer | ( | bool | enableLedgerReplay | ) |
Definition at line 275 of file LedgerReplay_test.cpp.
|
override |
Definition at line 282 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 286 of file LedgerReplay_test.cpp.
|
override |
Definition at line 291 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 295 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 300 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 305 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 310 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 315 of file LedgerReplay_test.cpp.
|
override |
Definition at line 320 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 325 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 330 of file LedgerReplay_test.cpp.
|
override |
Definition at line 335 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 339 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 345 of file LedgerReplay_test.cpp.
|
override |
Definition at line 350 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 354 of file LedgerReplay_test.cpp.
|
override |
Definition at line 359 of file LedgerReplay_test.cpp.
|
override |
Definition at line 363 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 368 of file LedgerReplay_test.cpp.
|
override |
Definition at line 373 of file LedgerReplay_test.cpp.
|
override |
Definition at line 377 of file LedgerReplay_test.cpp.
|
override |
Definition at line 381 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 385 of file LedgerReplay_test.cpp.
|
nodiscardoverride |
Definition at line 391 of file LedgerReplay_test.cpp.
| std::string xrpl::test::TestPeer::fingerprint_ |
Definition at line 397 of file LedgerReplay_test.cpp.
| bool xrpl::test::TestPeer::ledgerReplayEnabled_ |
Definition at line 398 of file LedgerReplay_test.cpp.
| PublicKey xrpl::test::TestPeer::nodePublicKey_ |
Definition at line 399 of file LedgerReplay_test.cpp.
|
inherited |
Definition at line 15 of file BasicNetwork.cpp.
|
inherited |
Definition at line 16 of file BasicNetwork.cpp.