Skip to content

Show more info about Execution error: Assert Exception: static_cast<size_t>(tag) < count() #2578

@abitmore

Description

@abitmore

Description

When trying to transact with an older version of cli_wallet (E.G. 5.0.0) on the current chain (version 6.x), this error is returned:

Execution error: Assert Exception: static_cast<size_t>(tag) < count()

Reported by multiple users.

The error appeared after explicitly set fee schedule for operation number 64-74. It disappeared after the explicit values got removed from fee schedule.

I think the error is generated by this code:

params.set_which(current_op);

Still trying to stably reproduce.

It is better to show more info for easier diagnosis when such error occurs.

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)

Host Environment
Please provide details about the host environment. Much of this information can be found running: witness_node --version.

  • Host OS: Ubuntu 18.04 LTS / Windows
  • Host Physical RAM: -
  • BitShares Version: 6.0.0 / 6.0.1
  • OpenSSL Version: -
  • Boost Version: -

CORE TEAM TASK LIST

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions