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:
JoelKatz
2014-10-19 22:29:31 -07:00
committed by Vinnie Falco
parent 761902864a
commit 65125eac87
2 changed files with 8 additions and 2 deletions

View File

@@ -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