Skip to content

Conversation

@doey-noncelab
Copy link
Collaborator

원인

  1. 동기화 시, tx 상태 업데이트 후(pending → confirmed), tx와 연관된 utxo는 정리되지 않는 상태에 발생할 것으로 추정
  • 다음 진입 시 동기화 시도하지만 tx는 이미 confirmed 상태가 되어버려 연관된 작업을 하지 않음.
  • confirmed 전환 시 정리되었어야할 tx와 관련된 utxo가 남게 됨.
  1. tx가 없는 orphaned utxo의 transactionHash로 tx 정보를 가져올 때 null exception 발생할 것으로 추정

조치

  1. 지갑 구독 시, Orphaned Utxo(tx가 없거나 이미 컨펌된 utxo)를 정리함.
  2. utxo_sync_service_test.dart: cleanupOrphanedUtxo 동작 테스트 코드 작성
  3. utxo 상세 화면 진입 시 tx == null 체크

테스트 코드 troubleshooting

  • Realm error : Could not open librealm_dart.dylib....에러 발생하면, fvm flutter pub run realm install 명령어 수행 후 테스트하기

@doey-noncelab doey-noncelab linked an issue Nov 24, 2025 that may be closed by this pull request
@doey-noncelab doey-noncelab added the 🐛 bug 버그 이슈 label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug 버그 이슈

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] pending utxo 상세 화면 진입 시 오류

2 participants