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

testnet branch hardcoded settings and default config are not suitable for private testnet by default #1722

Closed
1 of 17 tasks
bitphage opened this issue Apr 16, 2019 · 10 comments
Closed
1 of 17 tasks
Labels
5a Docs Needed Status specific to Documentation indicating the need for proper documentation to be added informative

Comments

@bitphage
Copy link

Bug Description

I'm testing an application on the local testnet. Testsuite doing balance claim, create account, create assets, transfer, places 1 buy order + 1 sell order.

Expected behavior: all operations appeared in the blocks only once.
Actual result: multiple operations with identical signatures in the block history included into different blocks.

Attached blocks.txt - this is the blocks content of first 100 blocks of the testnet obtained via get_block

To see the same operations included multiple times, here is a couple signatures:

  • 1f75845c8989156f1acecb730759856aaa0fb622a3425e8f62b6b2c80d95f6bb3638a78cb8b247b8a786b038e62651fa8450f0a87e7a145ad3949ce9f823d0a0d9
  • 201021050e4bcc91df898c84ef59fe5b4f4ecd04c63f0d8da821091b6f635d30e8102920da9267f4b15b5a0dd01defbce6f0a2cf7d124e9a4f60b37d9991da2102

Also attached the log of the bitshares-core docker container node.log

Config of the node config.ini.txt

Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.

  • API (the application programming interface)
  • Build (the build process or something prior to compiled code)
  • CLI (the command line wallet)
  • Deployment (the deployment process after building such as Docker, Travis, etc.)
  • DEX (the Decentralized EXchange, market engine, etc.)
  • P2P (the peer-to-peer network for transaction/block propagation)
  • Performance (system or user efficiency, etc.)
  • Protocol (the blockchain logic, consensus, validation, etc.)
  • Security (the security of system or user data, etc.)
  • UX (the User Experience)
  • Other (please add below)

Steps To Reproduce
Testsuite will be published later.

Host Environment

  • BitShares Version: docker image 26b7a6685e66

CORE TEAM TASK LIST

  • Evaluate / Prioritize Bug Report
  • Refine User Stories / Requirements
  • Define Test Cases
  • Design / Develop Solution
  • Perform QA/Testing
  • Update Documentation
@abitmore
Copy link
Member

Last time I heard of similar issue, is due to producers running testnet branch with default config.ini which contains a few checkpoints. I'm unable to find the ticket so far.

@bitphage
Copy link
Author

config.ini is attached, there are no checkpoints.

I also tried to run a testnet with single witness, didn't help.

@bitphage
Copy link
Author

bitphage commented Apr 17, 2019

Ok, thanks @abitmore, the issue was caused by hardcoded checkpoint variable in the testnet branch. Setting of checkpoint = [] fixes the problem.

@bitphage bitphage changed the title bitshares-core operations doubling testnet branch hardcoded settings and default config are not suitable for private testnet by default Apr 17, 2019
bitphage added a commit to bitphage/DEXBot that referenced this issue Apr 17, 2019
@abitmore abitmore reopened this Apr 19, 2019
@abitmore abitmore added the 5a Docs Needed Status specific to Documentation indicating the need for proper documentation to be added label Apr 19, 2019
@abitmore
Copy link
Member

@cedar-book @ryanRfox @pmconrad what do you think?

@pmconrad
Copy link
Contributor

Documentation update needed:

Best add checkpoint = [] to example config plus a comment that it's needed to overwrite default checkpoint.

@cedar-book
Copy link

cedar-book commented Apr 21, 2019

I am working on. --> I had done.

@cedar-book
Copy link

Added some more comments for config.ini examples.
I've been re-typing How to Private testnet section.

@pmconrad pmconrad added this to the 3.3.0 - Feature Release milestone Aug 14, 2019
@pmconrad
Copy link
Contributor

Looks good. Thanks!

@pmconrad
Copy link
Contributor

@cedar-book in the future, please include a link to the related issue in your PR, that makes compiling the release notes much easier.

@cedar-book
Copy link

@pmconrad, Yes, I will add that. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5a Docs Needed Status specific to Documentation indicating the need for proper documentation to be added informative
Projects
None yet
Development

No branches or pull requests

4 participants