conflux-rust icon indicating copy to clipboard operation
conflux-rust copied to clipboard

Add receipt log for EVM triggered transfer

Open yangzhe1990 opened this issue 4 years ago • 3 comments

Block receipts captures important outcomes of the transaction. I think vm triggered transfer, such as balance withdrawal from contract, contract destruction refunds, gas sponsor refund, storage sponsor refund are are important. This can be done at the level of evm transact function.

yangzhe1990 avatar Apr 16 '20 12:04 yangzhe1990

From @ChenxingLi: log is user defined, so it's rational with or without log for balance withdrawal.

I think for our defined behavior, such as contract destruction refund and in internal contract, it's still good to have log for triggered transactions.

User and conflux-scan may find it useful.

yangzhe1990 avatar Apr 16 '20 12:04 yangzhe1990

@yangzhe1990 , after my experience with the block reward record. I am not sure whether we should put it into receipt/log. Or alternatively, we can just maintain some full node data to enable queries.

The only advantage of log is to perform Merkel proof for a light node. I do not see this is necessary for event triggered transfer histories.

fanlong avatar May 14 '20 01:05 fanlong

Let's say if confluxscan displays more information for a contract destruction, and so it need to make some queries, I think the blockreceipt/log is still the place for such information.

What's your take away of trying add block reward record? Is it inconvenient to put data into log?

yangzhe1990 avatar Jun 05 '20 21:06 yangzhe1990