steem-python icon indicating copy to clipboard operation
steem-python copied to clipboard

Feature: Use current block - 3 reference for broadcast tx

Open Netherdrake opened this issue 7 years ago • 6 comments

todo: https://github.com/steemit/steem-js/pull/161/files

Netherdrake avatar Jun 09 '17 11:06 Netherdrake

Guys could you explain why this change was introduced? I'm often getting an errors while making transactions. I'm on golos blockchain and I'm using a forked version of steem-python.

Here is the my report to golos-python: https://github.com/GolosChain/golos-python/issues/3

I reverted this change and errors disappeared.

bitphage avatar Nov 10 '17 10:11 bitphage

This might explain a recent bug in yo too

On Nov 10, 2017 10:43 AM, "Vladimir Kamarzin" [email protected] wrote:

Guys could you explain why this change was introduced? I'm often getting an errors while making transactions. I'm on golos blockchain and I'm using a forked version of steem-python.

Here is the my report to golos-python: GolosChain#3 https://github.com/GolosChain/golos-python/issues/3

I reverted this change and errors disappeared.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/steemit/steem-python/issues/13#issuecomment-343439819, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqWaJmNeDRZ2R77dWbk9pN9nXpy_FIZks5s1CjNgaJpZM4N1QXK .

GwenNelson avatar Nov 10 '17 15:11 GwenNelson

@sneak @john-g-g

Is this issue still relevant?

steem-python does not currently implement this.

cyon1c avatar Mar 06 '18 22:03 cyon1c

Yes, it is likely still relevant. If the change is introducing problems then it's likely a bug in the change, not the concept.

Each tx needs to refer to the block hash of a recent block. A block from a few blocks ago should be used, instead of the absolute tip of the chain, in the event of a microfork that invalidates the tip block which then renders the transactions that referenced it invalid.

sneak avatar Apr 03 '18 03:04 sneak

@sneak I think reasonable default is use last_irreversible_block as a reference. This will prevent transactions loosing at chain forks.

bitphage avatar Apr 03 '18 04:04 bitphage

That’s fine too.

sneak avatar Apr 03 '18 04:04 sneak