citp / BlockSci

A high-performance tool for blockchain science and exploration
https://citp.github.io/BlockSci/
GNU General Public License v3.0
1.34k stars 259 forks source link

How blocksci set the cluster updated when new block received with 'increasement' way? #323

Closed mengmengtech closed 5 years ago

mengmengtech commented 5 years ago

Does Blocksci cluster has the method for 'increasement' update?


We called function via python like belows:

import blocksci
chain = blocksci.chain("bsci.conf") 
cm = blocksci.cluster.ClusterManager.create_clustering("cluster", chain)

from source code, the "Overwrite" mode does not update from latest cluster status,and seems only overwrite the path directly instead!

if (boost::filesystem::exists(path)) {
    boost::filesystem::remove(path);
}

Hopefuly can get your suggestion upon it. Thanks much!

System Information

Using AMI: no
BlockSci version: v0.6 & v0.5
Blockchain: Bitcoin Parser: Disk Total memory: 128 GB

maltemoeser commented 5 years ago

Incremental cluster updates are not supported, though re-running the clusterer is fairly quick :) See #163 for some discussion of this