Closed osmirnov closed 5 years ago
We need a new index? How is this done in the official repository?
They get this from transaction record offset in LevelDB. Yes I think it should extra field Id
or something.
We can use a class like this?
class StoredTx
{
uint Height;
Transaction Tx;
}
Could we extend Transaction
itself because we many derived classes as InvocationTransaction
?
There are VM calls "System.Blockchain.GetTransactionHeight" and "Neo.Blockchain.GetTransactionHeight". We need to store height for transactions.