How are the trades ordered before the ledger closes?

Looking from a "high frequency trading" perspective, is it possible to execute some attacks like front running on Stellar? If my node receives a trade, can I outrun it by submitting my trade faster to other nodes?

I asked the same question earlier.

Jed mentioned that trades are applied in random (actually, pseudo-random) order, and transaction fees do not affect the order in which transactions are applied within the ledger. So larger fees do not prioritize trading operations, preventing Low Latency HFT manipulations.

  • 1
    If the validators know how to calculate this randomness, I should be able to do the same. In this case I can just generate a bunch of transactions until the final pseudo-random state suites me. I will read a bit through the stellar-core code just to try to understand it completely. – bkolobara Aug 7 at 15:04

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.