Track STTx validity with HashRouter. (RIPD-977)

This commit is contained in:
Edward Hennis
2015-07-13 17:01:40 -04:00
parent c15394c42a
commit 2f5d721ec1
19 changed files with 145 additions and 103 deletions

View File

@@ -129,23 +129,6 @@ public:
#endif
) const;
bool isKnownGood () const
{
return (sig_state_ == true);
}
bool isKnownBad () const
{
return (sig_state_ == false);
}
void setGood () const
{
sig_state_ = true;
}
void setBad () const
{
sig_state_ = false;
}
// SQL Functions with metadata.
static
std::string const&
@@ -165,12 +148,18 @@ private:
bool checkMultiSign () const;
TxType tx_type_;
mutable boost::tribool sig_state_;
};
bool passesLocalChecks (STObject const& st, std::string&);
using SigVerify = std::function < bool(STTx const&, std::function<bool(STTx const&)>) > ;
inline
bool directSigVerify(STTx const& tx, std::function<bool(STTx const&)> sigCheck)
{
return sigCheck(tx);
}
} // ripple
#endif