Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

utreexoserver doesn't resume with Flatter TTL data #333

Open
kcalvinalvin opened this issue Nov 28, 2021 · 0 comments
Open

utreexoserver doesn't resume with Flatter TTL data #333

kcalvinalvin opened this issue Nov 28, 2021 · 0 comments

Comments

@kcalvinalvin
Copy link
Member

kcalvinalvin commented Nov 28, 2021

I don't think the comment I left here was ever addressed #279 (comment)

Here's the error log that I had.

Done writing. Height 72347 Forest: can't print 227963 leaves. roots:
        0 ffcf670b1d59096e16234622
        1 224909094ee8023106bbf855        2 28403614720757cd9b4c2c18
        3 7e44ff52b8ade3d154391bc6
        4 d01b92dcd5e40d766f3c7334        5 87cb97591051431f6fe2cc1c
        6 875d05288e83207b39bb5b15
        7 4800f5b501e753ff2c1b8c89
        8 3d7c2e87806e2e770b23e99c        9 224efc6526359d369c0d2926 
        10 a4843c23761c4ceb287838d2
        11 f8809f36cabc048bac0d1ba4
        12 0c1e0dcee5c60af5b58a1a34                                                                                              
[N] calvin@bitcoin ~/b/g/u/g/s/g/m/u/c/utreexoserver (master)> ./run.sh
Has access to forest, resuming
restore height 72347                                            Starting forest: can't print 227963 leaves. roots:
        0 ffcf670b1d59096e16234622
        1 224909094ee8023106bbf855
        2 28403614720757cd9b4c2c18
        3 7e44ff52b8ade3d154391bc6
        4 d01b92dcd5e40d766f3c7334
        5 87cb97591051431f6fe2cc1c
        6 875d05288e83207b39bb5b15
        7 4800f5b501e753ff2c1b8c89        8 3d7c2e87806e2e770b23e99c        9 224efc6526359d369c0d2926         10 a4843c23761c4ceb287838d2
        11 f8809f36cabc048bac0d1ba4
        12 0c1e0dcee5c60af5b58a1a34                                
Building Proofs and ttls...                                                                                                      
panic: utxo created h 72347 idx in block 12 destroyed h 72348 but max h 72347 cur h 72347
                                
goroutine 10 [running]:                                                                                                          
github.com/mit-dci/utreexo/bridgenode.flatFileWorkerTTL(0xc000042420, 0xc000042540, 0xc0000182b8, 0x13, 0xc000016240, 0x22, 0xc000022400, 0x31, 0xc0000182d0, 0x12, ...)
        /home/calvin/bitcoin-projects/go/utreexo/go/src/github.com/mit-dci/utreexo/bridgenode/flatfileworker.go:181 +0x4a9
created by github.com/mit-dci/utreexo/bridgenode.BuildProofs
        /home/calvin/bitcoin-projects/go/utreexo/go/src/github.com/mit-dci/utreexo/bridgenode/genproofs.go:110 +0x4e8

Until this gets fixed, I think making the previous TTL data with leveldb by default is the way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant