-
DanIsnotthemanBr
-
DanIsnotthemanBr
This is cool
-
plowsof11
no community meeting here today, next week. but there is a #monero-events:monero.social meeting at 18:00UTC 👍️
-
Siren[m]
If you're at FOSDEM feel free to ping or DM me
-
Siren[m]
We're having a small meetup
-
HAL9000[m]
-
HAL9000[m]
* posted in the wrong room, sorry
-
nioc
it's true, HAL does have a bug
-
ajs_[m]
monerokon meeting in 5 minutes in #monero-events:monero.social
-
-
Stnby[m]
Todays loot an FOSDEM
-
monerobull[m]1
Those matrix t-shirts are cool
-
Siren[m]
<Stnby[m]> "Todays loot an FOSDEM" <- 50% of what you collected
-
monerobull[m]1
Gamescom loot is on another level though
-
-
monerobull[m]1
monerobull[m]1: I got 4 beers and a baked potato last time
-
Stnby[m]
monerobull[m]1: I really tried them to accept Monero, sadly aint working
-
monerobull[m]1
<Stnby[m]> "PXL_20230204_193623183.MP.jpg" <- Curl stickers are pretty cool
-
Stnby[m]
I did not expect to see the Curl man there, they were advertising WolfSSL, just because how shit OpenSSL is
-
monerobull[m]1
Wireguard
-
monerobull[m]1
(or is this unrelated?)
-
esac212[m]
I unmounted an external SSD with the block chain forgetting that monerod is running.
-
esac212[m]
Now it says that DB is corrupted
-
esac212[m]
--db-salvage doesn't seem to do anything
-
esac212[m]
How can I forget last 100 blocks?
-
ofrnxmr[m]
pop_blocks 100
-
esac212[m]
I can't start the daemon because it fails to parse the DB and pop_blocks requires the daemon running
-
esac212[m]
Are there any tools that operate directly on the DB?
-
ofrnxmr[m]
Yes
-
ofrnxmr[m]
./monero-blockchain-import --pop-blocks 100
-
selsta
you will likely have to resync
-
selsta
or restore from backup if you have one
-
esac212[m]
It looks like block chain import tries to start the daemon too and fails with "can't parse a blob" error
-
esac212[m]
But there is like 149GiB of the valid data and only the recent one is corrupted. There should be a way to truncate the DB without resyncing everything.
-
plowsof11
so we cant start monerod at all hm
-
monerobull[m]1
Don't worry, i can't start bitcoind either
-
DanIsnotthemanBr
lol
-
monerobull[m]1
Or at least my ord.exe can't
-
monerobull[m]1
Will have to fix that
-
selsta
esac212[m]: the db isn't sequential where you can just take the top away to remove corruption
-
esac212[m]
-
esac212[m]
But it looks like I can fix it by just truncating this range
-
DanIsnotthemanBr
like a reverse pruning
-
esac212[m]
It looks like I actually need to find the first corrupted node then discard it and then discard all nodes that contain data about blocks which are not present in the valid part of the DB, and there are no tools to manipulate LMDB so this must be coded from scratch 🥴
-
DanIsnotthemanBr
-
DanIsnotthemanBr
?
-
DanIsnotthemanBr
fyi never tried it
-
selsta
did you check the mdb_* tools? not sure if they are helpful for what you want to do
-
esac212[m]
Yep, maybe with combination of mdb_dump + mdb_load I can achieve this but I'm not sure. I will play with the BlockchainDB class first.