Draft: November commitments
Merge request reports
Activity
added 1 commit
- 96f73e32 - Add alt db connection for old commitments, checkwallet to check if a wallet...
added 1 commit
- ef90b544 - Remove ampersand from alt connect format string
26 28 "gitlab.com/xx_network/crypto/signature/rsa" 27 29 "gitlab.com/xx_network/primitives/id" 28 30 "gitlab.com/xx_network/primitives/id/idf" 31 utils2 "gitlab.com/xx_network/primitives/utils" changed this line in version 15 of the diff
44 48 impl := &Impl{ 45 49 s: s, 46 50 contractHash: params.ContractHash, 51 idList: map[string]interface{}{}, 52 } 53 54 if p, err := utils2.ExpandPath(params.IDListPath); err == nil { 55 idList, err := utils2.ReadFile(p) 56 if err != nil { 57 return errors.WithMessage(err, "Failed to read ID list path") 58 } 59 r := csv.NewReader(bytes.NewReader(idList)) 60 records, err := r.ReadAll() 61 for _, r := range records { 62 impl.idList[r[0]] = true changed this line in version 15 of the diff
192 212 } 193 213 194 214 // Check if wallet is in old commitments 195 ok, err = i.s.CheckWallet(msg.PaymentWallet) 196 if err != nil { 197 err = errors.WithMessage(err, "Failed to check wallet status in old commitments") 198 jww.ERROR.Println(err) 199 return err 200 } 201 if !ok { 202 err = errors.Errorf("Cannot add wallet %s: wallet already used in the old commitments system", msg.PaymentWallet) 203 jww.ERROR.Println(err) 204 return err 215 if _, ok := i.idList[nid.String()]; !ok { added 1 commit
- 31b1bb76 - Logging fixes, check path param before trying to load
Please register or sign in to reply