Skip to content

Commit

Permalink
add some check
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-hermes committed Jul 5, 2024
1 parent d502ced commit 7fe5040
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crypto/block/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1701,6 +1701,13 @@ bool Transaction::prepare_compute_phase(const ComputePhaseConfig& cfg) {
<< ", limit=" << gas.gas_limit << ", credit=" << gas.gas_credit;
LOG(INFO) << "out_of_gas=" << cp.out_of_gas << ", accepted=" << cp.accepted << ", success=" << cp.success
<< ", time=" << elapsed << "s";

if (!cp.accepted) {
std::stringstream ss;
stack->dump(ss, 4);
LOG(INFO) << "not accepted, stack trace: " << ss.str();
}

if (logger != nullptr) {
cp.vm_log = logger->get_log();
}
Expand Down

0 comments on commit 7fe5040

Please sign in to comment.