CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

When pruning starts to take effect during reindex?

This question is about Bitcoin SV, but since it uses a fork of bitcoind, it should be the same. I’m about to turn on pruning on other daemons, like Bitcoin itself, but I don’t understand some issues related with it.

So I’m trying to reindex the blockchain in pruning mode (prune=5120) because the full blockchain is 1 TB+. Yes, I understand that it has to download the whole blockchain to build the index, this is not what I’m asking.

Some blocks are indeed removed during synchronization:

[msghand] Prune: UnlinkPrunedFiles deleted blk/rev (00791) 

However, halfway through the process there’s already 44 GB of block data. But shouldn’t it be capped by 5 GB?

/mnt/bitcoin_sv$ sudo du -h 222M    ./data/blocks/index 44G ./data/blocks 4.0K    ./data/dstxns 2.4G    ./data/chainstate 648K    ./data/database 12K ./data/mempoolTxDB 16K ./data/merkle/index 20K ./data/merkle 46G ./data 16K ./lost+found 46G . 

This is not the first time I try to reindex the BSV blockchain. The daemon crashes and can’t recover because it tries to load a file that is already pruned. So before I restarted the reindexing process, it was like that:

/mnt/bitcoin_sv$ sudo du -h 220M ./blocks/index 315G ./blocks 2.6G ./chainstate 

315 GB of blocks when the cap is 5 GB.

So how does the pruning work? It has to store (not just download) the whole blockchain before pruning? So it’s mandatory to have 1 TB of SSD to sync even in pruned mode?

Crypto Hats, Crypto Shirts, Crypto Socks, Crypto Clothing

Explicit type conversion not allowed from "int_const -1" to "uint128"

I am compiling using sol 0.8.0 and the following line is producing the error in the title: uint256 public constant MASK = uint128(~0); Error: Explicit type conversion not allowed from "int_const -1" to "uint128". When changing the variable to this: uint256 public constant MASK = ~0; The error changes to: Type int_const -1 is not::Listen

I am compiling using sol 0.8.0 and the following line is producing the error in the title:

uint256 public constant MASK = uint128(~0); 

Error:

Explicit type conversion not allowed from "int_const -1" to "uint128". 

When changing the variable to this:

uint256 public constant MASK = ~0; 

The error changes to:

Type int_const -1 is not implicitly convertible to expected type uint256. Cannot implicitly convert signed literal to unsigned type. 

When pruning starts to take effect during reindex?

Shopping cart
There are no products in the cart!
Continue shopping
0