Skip to content

GUI: Explain rejected asset transfers - #1300

Open
Tabakkui wants to merge 1 commit into
RavenProject:developfrom
Tabakkui:fix/issue-1220-asset-error
Open

Tabakkui wants to merge 1 commit into
RavenProject:developfrom
Tabakkui:fix/issue-1220-asset-error

Conversation

@Tabakkui

Copy link
Copy Markdown

Problem

Asset transfers that are rejected during wallet commit can show a blank reason in Raven-Qt. SendAssetTransaction() only used CValidationState::GetRejectReason(), even when validation supplied diagnostic text through GetDebugMessage(). This matches the blank-reason dialog reported in #1220.

Approach

  • Preserve the existing reject reason when it is available.
  • Fall back to FormatStateMessage() when the reject reason is empty so the debug message and validation code reach the caller.
  • Add a focused asset transaction unit regression test covering both paths.

Test plan

  • git diff --check
  • Static regression assertions for the production call and both test cases
  • Full C++ unit/build test not run on the ARM64 Pi; requires the authorized PC build environment.

Fixes #1220

Use the validation debug message when an asset transaction is rejected without a reject reason. Add a regression test for both fallback and existing reject-reason paths.\n\nFixes RavenProject#1220
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

Successfully merging this pull request may close these issues.

1 participant