-
Notifications
You must be signed in to change notification settings - Fork 102
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
Small fixes and cleanup #133
Conversation
A workaround was added during debugging to allow constructing a partial proof when the block is not known yet. This has been fixed in another way (creating a fake block on at the call site) in the meantime, so this workaround is no longer needed here.
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.
Looks good!
queries: "tarodb/sqlite/queries" | ||
version: "2" | ||
sql: | ||
- engine: "postgresql" |
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.
Looks equivalent, but why is the engine PostgreSQL here in general?
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.
When we started the project, the sqlite engine wasn't ready. However turns out, that we can use the postgres engine as is, since we're not using any sqlite specific features yet. This also means we can ideally "easily" add another layer of scaffolding and then support postgres as well w/ minimal changes.
|
||
// If one of the family keys is not nil while the other one is, then we | ||
// can already exit here as we know things won't match up further. | ||
if !famKeyBothNil && !famKeyNoneNil { |
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.
IMO the other representation is easier to read b/c only one negation:
!(famKeyBothNil || famKeyNoneNil)
But not a blocker.
|
||
// TestAddrMatchesAsset tests that the AddrMatchesAsset function works | ||
// correctly. | ||
func TestAddrMatchesAsset(t *testing.T) { |
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.
💯
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.
LGTM 🧦
Fixes a few smaller things:
sqlc
version tov1.15.0
(can use new config format, butsqlite
engine doesn't understandWITH
clauses yet, so we can't use that).tarocli addrs receives
command to show inbound asset transfers.