mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Track STTx validity with HashRouter. (RIPD-977)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user