Skip to content

Commit

Permalink
server: Add deterministic order while retrieving transaction outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Jul 8, 2019
1 parent 569762e commit 0f92ef0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ class TransactionOutputPostgresDAO @Inject()(explorerConfig: ExplorerConfig) {
|SELECT txid, index, hex_script, value, addresses
|FROM transaction_outputs
|WHERE txid = {txid}
|ORDER BY index
""".stripMargin
).on(
'txid -> txid.string
Expand All @@ -118,6 +119,7 @@ class TransactionOutputPostgresDAO @Inject()(explorerConfig: ExplorerConfig) {
|FROM transaction_outputs
|WHERE txid = {txid} AND
| {address} = ANY(addresses)
|ORDER BY index
""".stripMargin
).on(
'txid -> txid.string,
Expand Down

0 comments on commit 0f92ef0

Please sign in to comment.