Code Monkey home page Code Monkey logo

Comments (2)

robertDurst avatar robertDurst commented on August 16, 2024

Hey! Having issues replicating this. Here are the steps I took:

  1. Mirrored a history archive to my local disk
stellar-archivist mirror http://s3-eu-west-1.amazonaws.com/history.stellar.org/prd/core-testnet/core_testnet_001 file://local-archive --low 3600000 --high 3700000
  1. Run stellar-archivist
stellar-archivist --low 3600000 --high 3700000 scan --verify --thorough file:///Users/[MY_USERNAME]/local-archive/

I received this output:

2018/03/02 14:41:08 Scanning checkpoint files in range: [0x0036ee3f, 0x0038753f]
2018/03/02 14:41:09 Archive: 1344 history, 233 ledger, 762 transactions, 824 results, 928 scp
2018/03/02 14:41:10 Checkpoint files scanned with 0 errors
2018/03/02 14:41:10 Archive: 1564 history, 1564 ledger, 1564 transactions, 1564 results, 1564 scp
2018/03/02 14:41:10 Scanning all buckets, and those referenced by range
2018/03/02 14:41:11 Archive: 2037 buckets total, 2037 referenced
2018/03/02 14:41:11 Examining checkpoint files for gaps
2018/03/02 14:41:11 Examining buckets referenced by checkpoints
2018/03/02 14:41:11 No checkpoint files missing in range [0x0036ee3f, 0x0038753f]
2018/03/02 14:41:11 No missing buckets referenced in range [0x0036ee3f, 0x0038753f]
2018/03/02 14:41:11 Verified 100096 ledger headers have expected hashes
2018/03/02 14:41:11 Verified 100096 transaction sets have expected hashes
2018/03/02 14:41:11 Verified 100096 transaction result sets have expected hashes
2018/03/02 14:41:11 Verified 2037 buckets have expected hashes

As you can see this worked as expected.

  1. Removed ledger-00378d7f.xdr.gz

  2. Run stellar-archivist again

stellar-archivist --low 3600000 --high 3700000 scan --verify --thorough file:///Users/[MY_USERNAME]/local-archive/
  1. Received the following:
2018/03/02 15:00:16 Scanning checkpoint files in range: [0x0036ee3f, 0x0038753f]
2018/03/02 15:00:17 Archive: 1376 history, 229 ledger, 772 transactions, 809 results, 909 scp
2018/03/02 15:00:18 Checkpoint files scanned with 0 errors
2018/03/02 15:00:18 Archive: 1564 history, 1563 ledger, 1564 transactions, 1564 results, 1564 scp
2018/03/02 15:00:18 Scanning all buckets, and those referenced by range
2018/03/02 15:00:19 Archive: 2037 buckets total, 2037 referenced
2018/03/02 15:00:19 Examining checkpoint files for gaps
2018/03/02 15:00:19 Examining buckets referenced by checkpoints
2018/03/02 15:00:19 Missing ledger (1): 0x00378d7f
2018/03/02 15:00:19 No missing buckets referenced in range [0x0036ee3f, 0x0038753f]
2018/03/02 15:00:19 Error: mismatched hash on ledger header 0x00378d7f: expected e9b8e5356394f4ca192fcccddd5b93dd9bfb98428548e0d7eb0050e820a41ca5, got 0000000000000000000000000000000000000000000000000000000000000000
2018/03/02 15:00:19 Error: 1 ledger headers (of 100032 checked) have unexpected hashes
2018/03/02 15:00:19 Verified 100032 transaction sets have expected hashes
2018/03/02 15:00:19 Verified 100032 transaction result sets have expected hashes
2018/03/02 15:00:19 Verified 2037 buckets have expected hashes
2018/03/02 15:00:19 Detected 1 objects with unexpected hashes

As you can see, the error was caught.

2018/03/02 15:00:19 Missing ledger (1): 0x00378d7f

Is it possible this has been fixed?

from go.

cecilygardner avatar cecilygardner commented on August 16, 2024

Hi - @robertDurst was unable to reproduce this issue on the livenet or the testnet environment. Given that, we're going to close the issue. Please do let us know if you're still encountering the problem.

from go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.