input-output-hk / mithril

Stake-based threshold multi-signatures protocol
https://mithril.network
Apache License 2.0
127 stars 39 forks source link

Consistent sorting of transactions from `GetCardanoTransactionProvider` in signer and aggregator #1657

Closed jpraynaud closed 5 months ago

jpraynaud commented 5 months ago

Why

In order to provide consistent order of transactions on the different nodes, we need to rely on block_number and transaction_hash instead of rowid (which can differ from one node to another). Also we want to make sure that the sorting is fast and optimized.

What

Implement sorting of transactions by block_number and transaction_hash in signer and aggregator.

How