EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

Transaction's reference block did not match. Is this transaction from a different fork? #5837

Closed csquan closed 6 years ago

csquan commented 6 years ago

when I push tx,I got log "Transaction's reference block did not match. Is this transaction from a different fork?"

firesWu commented 6 years ago

Did you set correct block_num and block_prefix?

csquan commented 6 years ago

how set?my client just get_info of eos and set block_num and block_prefix.

firesWu commented 6 years ago

you should get block_num and block_prefix from blockchain which you want to push trx.
you can through get_block check block_num and block_prefix.

csquan commented 6 years ago

yes,as you say ,I had called get_block ....I use sdk on github

jgiszczak commented 6 years ago

Calling get_info is not sufficient. You must incorporate the results you received from get_info into the transaction you are composing.

If you are using eosjs, there are Github issues describing this process.