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
get_balance
Currently, the get_balance() function returns a athcon_uint256be:
get_balance()
athcon_uint256be
athena/ffi/athcon/include/athcon/athcon.h
Lines 549 to 559 in 96b9afa
Which is supposed to be a 256bit big-endian integer encoded in a byte array:
Lines 43 to 46 in 96b9afa
There are two problems with it:
u64
IMHO, we should change the C API to return a uint64_t instead to avoid confusion, make it efficient and simplify the code.
The text was updated successfully, but these errors were encountered:
Good catch. We use u64 in go-spacemesh so we should do the same in Athena. In any case it's more general than uint256.
Sorry, something went wrong.
poszu
Successfully merging a pull request may close this issue.
Currently, the
get_balance()
function returns aathcon_uint256be
:athena/ffi/athcon/include/athcon/athcon.h
Lines 549 to 559 in 96b9afa
Which is supposed to be a 256bit big-endian integer encoded in a byte array:
athena/ffi/athcon/include/athcon/athcon.h
Lines 43 to 46 in 96b9afa
There are two problems with it:
u64
so its inefficient to pass it as 256bitsIMHO, we should change the C API to return a uint64_t instead to avoid confusion, make it efficient and simplify the code.
The text was updated successfully, but these errors were encountered: