Closed satellitex closed 5 years ago
What did you execute? The stack trace says that it crashed while importing a block.
I execute this command on my srml. https://github.com/stakedtechnologies/Plasm/blob/master/core/utxo/src/lib.rs#L402
And, I have a place in mind.
I use storage, but not use decl_storage!
.
(using ↑ command it: https://github.com/stakedtechnologies/Plasm/blob/master/core/merkle/src/lib.rs#L35)
I don't really understand, you are using decl_storage!
and also use the type that is generated by decl_storage!
. Do you use your own merkle trie implementation/database interface?
Yes. I use my merkle on Inserter implemention. (This is abstracted. For we can select use merkle or not.) https://github.com/stakedtechnologies/Plasm/blob/master/core/utxo/src/mvp.rs
Is this no problem?(I see implementation that use child::get (directly access database ) on contract srml implementation.)
Do you somehow intercept the storage_root
generation?
Yes. I want to see internal node on trie.
So you maybe have a faulty implementation that does not calculate the correct storage root?
Sorry, I mistake. A cause of the bug is deposit_event
(https://github.com/stakedtechnologies/Plasm/blob/master/core/utxo/src/lib.rs#L419) (I remove here, don't show error.)
I resolve this problem.
A cause of the bug is using usize
type.
usize
type is not fixed size. So it happened error.
I happened runtime error when I execute api for polkadotjs.
Please tell me What is the reason to think?