提交 2ac89b8d 编写于 作者: A Anton Perkov

small bugfix: don't update requestim in case of zero change to refund #3180

上级 972f9d07
...@@ -296,7 +296,7 @@ namespace eosiosystem { ...@@ -296,7 +296,7 @@ namespace eosiosystem {
bool need_deferred_trx = false; bool need_deferred_trx = false;
if ( req != refunds_tbl.end() ) { //need to update refund if ( req != refunds_tbl.end() ) { //need to update refund
refunds_tbl.modify( req, 0, [&]( refund_request& r ) { refunds_tbl.modify( req, 0, [&]( refund_request& r ) {
if ( net_balance <= asset(0) || cpu_balance <= asset(0) ) { if ( net_balance < asset(0) || cpu_balance < asset(0) ) {
r.request_time = now(); r.request_time = now();
} }
r.net_amount -= net_balance; r.net_amount -= net_balance;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册