LiskArchive / lisk-engine

:bullettrain_front: Lisk blockchain engine
https://lisk.com
Apache License 2.0
0 stars 0 forks source link

Store reference to included block in transaction #58

Open shuse2 opened 1 year ago

shuse2 commented 1 year ago

Description

Add BlockID property when storing the block, and it should return in the response from the RPC. There should be distinction between general Transaction concept which used inside of block or in transaction pool. Therefore, Transaction struct should remain as it is.

Motivation

Currently, there is no information about in which block the transaction is included when transaction is fetched from storage. This will make other system hard to link the block when fetching single transaction