We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
async def lookupBlock(self, workchain, shard, seqno=None, lt=None, unixtime=None): assert seqno or lt or unixtime, "Seqno, LT or unixtime should be defined" mode = 0 if seqno: mode += 1 if lt: mode += 2 if unixtime: mode += 3 <<<<< THERE
It have to be
if unixtime: mode += 4
Related code from litesever.cpp
void LiteQuery::perform_lookupBlock(BlockId blkid, int mode, LogicalTime lt, UnixTime utime) { if (!((1 << (mode & 7)) & 0x16)) { fatal_error("exactly one of mode.0, mode.1 and mode.2 bits must be set"); return; } if (!(mode & 2)) { lt = 0; } if (!(mode & 4)) { utime = 0; }
The text was updated successfully, but these errors were encountered:
Nice find, thanks! Fixed in PR #9
Sorry, something went wrong.
No branches or pull requests
It have to be
Related code from litesever.cpp
The text was updated successfully, but these errors were encountered: