Skip to content

bug(zk): corrupted credits not balanced error after block execution during shielded operations #3412

@lklimek

Description

@lklimek

Description

During testing of shielded operations (shield from core, shielded transfers) on testnet, the Drive ABCI process produced a fatal "credits not balanced" error that halted block execution.

Error

2026-03-26T19:40:45.285834626Z ERROR abci client returned error
  client_id=DEFAULT:*abciclient.socketClient(tcp://drive_abci:26658)
  err="execution: corrupted credits not balanced error: credits are not balanced after block execution
    TotalCreditsBalance {
      total_credits_in_platform: 108181924240088,
      total_in_pools: 5075231436,
      total_identity_balances: 102946594130212,
      total_specialized_balances: 0,
      total_in_addresses: 5230254878442
    }
    off by 2"

Analysis

The credits mismatch is exactly 2 creditstotal_in_pools + total_identity_balances + total_specialized_balances + total_in_addresses = 108181924240090 vs total_credits_in_platform = 108181924240088.

This suggests a rounding or double-counting issue in the shielded fee/credit accounting rather than a large-scale corruption.

Context

  • Network: Testnet
  • Operations: Repeated shield-from-core (Type 18) and shielded transfer (Type 16) state transitions
  • Client: Dash Evo Tool v1.0-dev
  • Date: 2026-03-26

Impact

This error halts block production on the affected node, requiring a restart or rollback.

🤖 Co-authored by Claudius the Magnificent AI Agent

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions