server/db/driver/pg: increase size of asset ID column in markets table#1621
Conversation
buck54321
commented
May 18, 2022
The base and quote ID columns in the server db markets table were defined as INT2, too small for our uint32 asset IDs. Also need to do some character replacement for schemas with our new symbol scheme for tokens.
23410cb to
8816aef
Compare
|
Probably unrelated, but hit a panic in client while testing: panic |
Interesting. That line client/asset/eth.go:1036 doesn't have a slice index operation at all. I wonder what's really going on there. dcrdex/client/asset/eth/eth.go Line 1036 in cd4d98c |
chappjc
left a comment
There was a problem hiding this comment.
Upgrades and restarts working.
The dollar sign is a little annoying in the psql console (evades tab completion and requires escaping the dollar sign in regular expressions), but I don't have a better suggestion. The character choices are limited.
I was going to suggest simply removing a dot rather than replacing it, but I suppose there'd be a possibility for collisions that way.
Any alternative would be replacing with a string like TKN or even DOT e.g. usdt.eth -> usdtTKNeth or usdtDOTeth.
Worse?