mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
User nonce validation and expiration. (#164)
This commit is contained in:
@@ -421,7 +421,6 @@ namespace consensus
|
||||
// We only process inputs in the submitted order that can be satisfied with the remaining account balance.
|
||||
size_t total_input_len = 0;
|
||||
bool appbill_balance_exceeded = false;
|
||||
util::rollover_hashset recent_user_input_hashes(200);
|
||||
|
||||
for (const usr::user_input &umsg : umsgs)
|
||||
{
|
||||
@@ -436,13 +435,9 @@ namespace consensus
|
||||
util::buffer_view input;
|
||||
std::string hash;
|
||||
uint64_t max_lcl_seqno;
|
||||
reject_reason = usr::validate_user_input_submission(pubkey, umsg, lcl_seq_no, total_input_len, recent_user_input_hashes,
|
||||
hash, input, max_lcl_seqno);
|
||||
reject_reason = usr::validate_user_input_submission(pubkey, umsg, lcl_seq_no, total_input_len, hash, input, max_lcl_seqno);
|
||||
|
||||
if (input.is_null())
|
||||
return -1;
|
||||
|
||||
if (reject_reason == NULL)
|
||||
if (reject_reason == NULL && !input.is_null())
|
||||
{
|
||||
// No reject reason means we should go ahead and subject the input to consensus.
|
||||
ctx.candidate_user_inputs.try_emplace(
|
||||
|
||||
Reference in New Issue
Block a user