LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Store blockchain specific properties in transaction instances #1197

Closed SargeKhan closed 5 years ago

SargeKhan commented 5 years ago

Expected behavior

Once transactions are confirmed in the database, some properties relevant to the state of the blockchain is added to the transactions API endpoint. These properties include: confirmations, blockId, height. The transaction constructor should read these properties, so that these properties can be returned with the API response in Lisk-Core.

Actual behavior

The constructor for transaction ignores these properties.

Steps to reproduce

Which version(s) does this affect? (Environment, OS, etc...)