-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?