-
m-relay<0xfffc:monero.social> Does anyone know why after doing `pop_blocks` we get transaction verification failure error?
-
m-relay<0xfffc:monero.social> image.png
-
xFFFC0000( image stuck at the Element side )
-
m-relay<jeffro256:monero.social> If your node is still connected to the network and you do `pop_blocks`, then when peers notify you of new transactions, they will fail to verify because your blockchain is too short
-
m-relay<rbrunner7:monero.social> Sure, but why then doesn't this happen all the time? Because while still in syncing-to-top mode, however that's implemented, you don't start yet to verify something?
-
m-relay<rbrunner7:monero.social> Well, the daemon of course starts to sync (again) almost immediately after the popping, but *something* must now be different.
-
sech1Don't quote me, but IIRC it is because pop_blocks moves transactions from popped blocks back to mempool, then starts syncing and gets the same transactions back in synced blocks, and somewhere in between there is a conflict between them
-
m-relay<rbrunner7:monero.social> Found the code that puts them back into the pool. The writer felt compelled to write some comment there, this may be quite tricky overall: github.com/monero-project/monero/bl…cryptonote_core/blockchain.cpp#L645
-
m-relay<jeffro256:monero.social> rbrunner7: probably because `pop_blocks` does not set the value of "sychronized" to `false.` So it doesn't "know" it's not synchronized for a little bit
-
m-relay<0xfffc:monero.social> Makes sense. When I was debugging it I noticed the failure happened in incoming_transaction method IIRC.
-
vthorHolly hell, where is the janitor of the code? :D Who can tell me how to convert the `Monero key image export\x03` into the json format of the monero-wallet-rpc (offset unsigned int, array<string, string> {bin2hex( keyimage), bin2hex(signature)} (I guess)) and back, or point me on the point of code where I can figure that out.
-
vthorI'm jumping there around in the source and it makes me dizzy (I read now on SO that the hole file is encrypted with the view key (except the header), is this correct?) With xmrchain.net/rawkeyimgs I can't also not verify the key, but after browsing in that source it seems that is an older format because the magic header is there: `Monero key image export\002`
-
vthorI found it, but now I'm more dizzy, seems even more complicated then encrypting the seeds for a standalone PoC....