File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -235,8 +235,8 @@ type DKGParameters struct {
235
235
ApprovePrecedencePeriodBlocks uint64
236
236
}
237
237
238
- // WalletClosedEvent represents a wallet closed. It is emitted when the wallet
239
- // is closed in the wallet registry.
238
+ // WalletClosedEvent represents a wallet closed event . It is emitted when the
239
+ // wallet is closed in the wallet registry.
240
240
type WalletClosedEvent struct {
241
241
WalletID [32 ]byte
242
242
BlockNumber uint64
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ const (
16
16
// DKGResultHashCachePeriod is the time period the cache maintains
17
17
// the given DKG result hash.
18
18
DKGResultHashCachePeriod = 7 * 24 * time .Hour
19
- // WalletClosedCachePeriod is the time period the cache maintains
20
- // the given wallet closed hash .
19
+ // WalletClosedCachePeriod is the time period the cache maintains the ID of
20
+ // a closed wallet .
21
21
WalletClosedCachePeriod = 7 * 24 * time .Hour
22
22
)
23
23
Original file line number Diff line number Diff line change @@ -270,16 +270,17 @@ func Initialize(
270
270
event .WalletID ,
271
271
); ! ok {
272
272
logger .Warnf (
273
- "Wallet closure for wallet with ID [0x%x] at block [%v] has " +
274
- "been already processed" ,
273
+ "Wallet closure for wallet with ID [0x%x] at block [%v] " +
274
+ "has been already processed" ,
275
275
event .WalletID ,
276
276
event .BlockNumber ,
277
277
)
278
278
return
279
279
}
280
280
281
281
logger .Infof (
282
- "Wallet with ID [0x%x] has been closed at block [%v]" ,
282
+ "Wallet with ID [0x%x] has been closed at block [%v]; " +
283
+ "proceeding with handling wallet closure" ,
283
284
event .WalletID ,
284
285
event .BlockNumber ,
285
286
)
@@ -289,7 +290,7 @@ func Initialize(
289
290
)
290
291
if err != nil {
291
292
logger .Errorf (
292
- "Failure while handling wallet with ID [0x%x]: [%v]" ,
293
+ "Failure while handling wallet closure with ID [0x%x]: [%v]" ,
293
294
event .WalletID ,
294
295
err ,
295
296
)
You can’t perform that action at this time.
0 commit comments