mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 08:46:46 +00:00
refactor: Remove seq from TMGetObjectByHash (#6976)
This commit is contained in:
@@ -275,7 +275,6 @@ public:
|
||||
getObject->set_type(
|
||||
protocol::TMGetObjectByHash_ObjectType::TMGetObjectByHash_ObjectType_otTRANSACTION);
|
||||
getObject->set_query(true);
|
||||
getObject->set_seq(123456789);
|
||||
uint256 hash(xrpl::sha512Half(123456789));
|
||||
getObject->set_ledgerhash(hash.data(), hash.size());
|
||||
getObject->set_fat(true);
|
||||
|
||||
@@ -2113,9 +2113,6 @@ LedgerMaster::makeFetchPack(
|
||||
protocol::TMGetObjectByHash reply;
|
||||
reply.set_query(false);
|
||||
|
||||
if (request->has_seq())
|
||||
reply.set_seq(request->seq());
|
||||
|
||||
reply.set_ledgerhash(request->ledgerhash());
|
||||
reply.set_type(protocol::TMGetObjectByHash::otFETCH_PACK);
|
||||
|
||||
|
||||
@@ -2595,9 +2595,6 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMGetObjectByHash> const& m)
|
||||
|
||||
reply.set_query(false);
|
||||
|
||||
if (packet.has_seq())
|
||||
reply.set_seq(packet.seq());
|
||||
|
||||
reply.set_type(packet.type());
|
||||
|
||||
if (packet.has_ledgerhash())
|
||||
@@ -2635,8 +2632,6 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMGetObjectByHash> const& m)
|
||||
if (obj.has_ledgerseq())
|
||||
newObj.set_ledgerseq(obj.ledgerseq());
|
||||
|
||||
// VFALCO NOTE "seq" in the message is obsolete
|
||||
|
||||
// Check if by adding this object, reply has reached its
|
||||
// limit
|
||||
if (reply.objects_size() >= Tuning::hardMaxReplyNodes)
|
||||
|
||||
Reference in New Issue
Block a user