Skip to content

Commit

Permalink
fix: use market and asset prices in the correct places when updating …
Browse files Browse the repository at this point in the history
…a position on trade

Signed-off-by: Elias Van Ootegem <elias@vega.xyz>
  • Loading branch information
wwestgarth authored and EVODelavega committed Nov 10, 2023
1 parent 953e1cb commit 37a6e8b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions datanode/networkhistory/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,12 @@ func TestMain(t *testing.M) {
log.Infof("%s", goldenSourceHistorySegment[4000].HistorySegmentID)
log.Infof("%s", goldenSourceHistorySegment[5000].HistorySegmentID)

panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[1000].HistorySegmentID, "QmNr4ofCWXy8XKacW67TseVA7Pjra48JxxgZMF2BfD3x4h", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2000].HistorySegmentID, "QmZRjdLEHUFvBPxagsFLNEkhTDW2DGingWjiNrZ1UvvvEN", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2500].HistorySegmentID, "QmS8Ts4pWaUsZHDS92mqFXhstSjsyUz59YCiW6cU9BgwNF", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[3000].HistorySegmentID, "QmdNA2m3fzDn7bJhGSt2bWHFPEgqduQ3v4MVV4YhmdCP8j", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[4000].HistorySegmentID, "QmWbuJkPyv2PCLZ2ZeK5PHtLwoSoZiRCWhkbwNJbCKm6Ax", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[5000].HistorySegmentID, "QmeMMYzLy8wV6MCzPkNvNFNJ3aqU4tc4rhh8CLLNiqHhdr", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[1000].HistorySegmentID, "QmapApyyHGXzu8A6op4VSXosQJ1cPyjDX7SBgKbfvbxwx9", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2000].HistorySegmentID, "QmWxwXeXHV4Pv9bEtMqQgSSuZB9UdfDbxABwdLqwgxs2b3", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[2500].HistorySegmentID, "QmXtdoicvjfmDb7JQXroN9fUd6pY7Ld8Dbqiq1R29WcSyp", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[3000].HistorySegmentID, "QmNdy5ekxW9LWuhD96GeMpmD41koUxNMhvUqCj7TXzPkj6", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[4000].HistorySegmentID, "QmVw6ZWWNRGwmQ2BNYPVzwmdD8H4g7MpwNsrypzX8rVfec", snapshots)
panicIfHistorySegmentIdsNotEqual(goldenSourceHistorySegment[5000].HistorySegmentID, "QmSVkBYv7j4kh6H6QNFNFzzsFRV5KEk5bLMGKX13wqQxdY", snapshots)
}, postgresRuntimePath, sqlFs)

if exitCode != 0 {
Expand Down

0 comments on commit 37a6e8b

Please sign in to comment.