How to dump all of addresses from wallet.dat for other alt-coins? I'm on binarycoin now, with solo mining. Luck smile to me. I'm found 5 blocks. It is 100.0 binarycoins.

I'm trying to use "aggressive" speed-up, my daemon compiled with -O3. 

After last block I caught crash of daemon. And fails of relaunching with err: 

Database environment corrupt; the wrong log files may have been removed or incompatible database files imported from another environment 
PANIC: DB_RUNRECOVERY: Fatal error, run database recovery 
wallet.dat: unable to flush page: 19 
txn_checkpoint: failed to flush the buffer cache: DB_RUNRECOVERY: Fatal error, run database recovery 


If I'm redownload the blockchain.

-rescan doesn't help.

I'm shutdown the network, clean everything in the .binarycoin/* except wallet.dat and binarycoin.conf. Launch the daemon. My wallet.dat remembered that there were blocks, every block was marked as orphan. I've start to sniffing for my coins. My account named as "" contain only one address. I've found a web-blockchain  www.binarycoin.info:8080/ 
There was no my address. 

By tx ids in my wallet.dat, on this web-blockchain I've found addresses that received the bounties. I've dumped privkeys of this addresses, and cooled down.



My nerve continue playing. What if there is no side web-blockchain. How should I discovery the tx ids and thereafter my addresses, and thereafter dump my privkeys?

There is no option to get every address from wallet.dat, only one (default) address.

I found pywallet. It is for Bitcoin. Nevertheless, I've dump in plain-text my wallet.dat. 117 addresses with their privkeys. 

I compare my real addresses with this 117. No one.

I compare privkeys. No one.

How to trully extract all addresses and all privkeys that wallet.dat contains? 
( Specially for alt-coins )
now you can use bitcoin-cli dumpwallet command to export all your privkeys