eosio-java-android-example-app icon indicating copy to clipboard operation
eosio-java-android-example-app copied to clipboard

Error happened on calling GetblockInfo RPC

Open zhiyou007 opened this issue 4 years ago • 3 comments

loginfo: Error happened on calling GetblockInfo RPC

run the example has error, what can i do for it?

zhiyou007 avatar Apr 03 '21 17:04 zhiyou007

@opi-smccoole

zhiyou007 avatar Apr 03 '21 17:04 zhiyou007

Hi, sorry for the delay. It is the Easter holiday weekend here in the states, so I can only give a quick answer. The 1.0.0 versions of the SDKs and the examples are meant to align with the 2.1 release of EOS, which added get_block_info as a more efficient way of getting information for calculating TAPOS for transactions. Older versions of EOS and the SDKs used get_block which was much less efficient. We are looking at a change to the SDKs to detect the EOS version and act accordingly but do not have an ETA for that yet. In the mean time we are recommending that either you use an older version of the SDKs or work around the problem by getting the block information yourself via get_block and setting the TAPOS fields in the transaction yourself before trying to sign and send it. I'll see in the mean time if we can't find a way to show an example of that workaround.

opi-smccoole avatar Apr 03 '21 21:04 opi-smccoole

Thank you for your reply and look forward to your new version of Android demo Happy holidays

zhiyou007 avatar Apr 04 '21 16:04 zhiyou007