Is it 100% sure that deferred transaction will run on what delay is defined? Is there any possibility that deferred transaction failed to run on defined day? If it fails what is the alternative?
mainloan::checkPayment(uint64_t loan_id) { require_auth(_self);
auto itr = loan_table.find(loan_id);
eosio::transaction t {};
t.action.emplace_back(
permission_level(_selfse,"active"_n)),
_self,
"calIpd"_n **//fuction to be called after every 24hours.**
std::make_tuple(itr);
t.delay_sec=1; **//what delay should i give for 24 hour (1day)**
t.send(now(),_self);
eosio::print("transaction sent.");
}
what delay should i define so that my function runs after every 24 hour ?