ElementsProject / ElementsProject/elements
RPCs that need to use the wallet should check if it's unlocked
- Lingua principale
- C++
- Stelle
- 1.2k
- Fork
- 416
- Merge medio
- 1g 23h
- PR unite (30g)
- 15
Descrizione
At some appropriate place in `issueasset` in `rpcwallet.cpp` (after `LOCK(pwallet->cs_wallet)` but before doing anything that uses the wallet), there should be a call to `EnsureWalletIsUnlocked(pwallet)`. Otherwise we crash when trying to sign if the wallet has a password and is not unlocked.
We should also check whether any other RPCs have this issue (any RPCs that need to use the wallet for signing, which I think is the only thing you need it unlocked for?)
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia in rpcwallet.cpp, in issueasset, dopo LOCK(pwallet->cs_wallet), e ispeziona il percorso di firma che attualmente viene eseguito mentre un wallet protetto da password è bloccato. Controlla anche gli altri RPC che usano il wallet per firmare; il lavoro è completato quando ogni RPC di questo tipo verifica EnsureWalletIsUnlocked(pwallet) prima di accedere al wallet per la firma, senza il crash segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- blockchain
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100