mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add "deferred" flag to transaction relay message
If we receive a deferred transaction from a server in our cluster, treat it as if it wasn't received from a server in our cluster. This currently has no effect but is needed for server to interoperate with future code that will relay deferred transactions.
This commit is contained in:
@@ -1278,7 +1278,13 @@ PeerImp::on_message (std::shared_ptr <protocol::TMTransaction> const& m)
|
||||
|
||||
if (clusterNode_)
|
||||
{
|
||||
flags |= SF_TRUSTED;
|
||||
if (! m->has_deferred () || ! m->deferred ())
|
||||
{
|
||||
// Skip local checks if a server we trust
|
||||
// put the transaction in its open ledger
|
||||
flags |= SF_TRUSTED;
|
||||
}
|
||||
|
||||
if (! getConfig().VALIDATION_PRIV.isSet())
|
||||
{
|
||||
// For now, be paranoid and have each validator
|
||||
|
||||
Reference in New Issue
Block a user