Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies to dcrd v2.0.2 #544

Merged
merged 20 commits into from
Jul 6, 2024

Conversation

dmigwi
Copy link
Collaborator

@dmigwi dmigwi commented Jun 19, 2024

closes #560

NOTE TO TESTERS: Testing this PR, upgrades your database which can no longer be downgraded.

This PR upgrades to decred.org/dcrwallet/v4 that depends on github.com/decred/dcrd v2.0.2

More changes introduced as a result of the dependencies upgrade.:

Tests Run on the code.

  • Coinshuffle mixing using the peer-to-peer architecture.
  • Test buying tickets
  • Test voting functionality using live tickets

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 19, 2024

Coins Mixing using the new implementation works.
Screenshot 2024-06-19 at 20 09 30

@dmigwi dmigwi force-pushed the upgrade-to-decred-2.0 branch from c48367b to 0efceb3 Compare June 19, 2024 18:26
@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 20, 2024

The failure of the Linter tool has been resolved here: #545

@dreacot
Copy link
Member

dreacot commented Jun 21, 2024

fix conflicts

@dmigwi dmigwi force-pushed the upgrade-to-decred-2.0 branch from 0efceb3 to 0a530b3 Compare June 21, 2024 15:42
Copy link
Member

@dreacot dreacot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@dreacot
Copy link
Member

dreacot commented Jun 24, 2024

NOTE TO TESTERS: Testing this PR upgrades your database which can no longer be downgraded after

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 24, 2024

NOTE TO TESTERS: Testing this PR upgrades your database which can no longer be downgraded after

I noticed that! Sorry for not sharing that information earliest possible.

@dmigwi dmigwi force-pushed the upgrade-to-decred-2.0 branch 3 times, most recently from 65a5696 to faa29b3 Compare June 24, 2024 12:32
@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 24, 2024

I have identified the following error while testing the ticket purchase functionality: Fixing it ASAP:

2024-06-24 15:31:42.389 [ERR] DCR: AccountMixer instance errored: context canceled
2024-06-24 15:31:44.182 [INF] DCR: Published ticket purchase 67f0abc0ea1fe8b38929d0505da81005d658156dca4367b653b1ed579e344e01
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x10278a97a]

goroutine 27445 [running]:
decred.org/dcrwallet/v4/wallet/udb.(*Store).Tx(0xc003644000, {0x105f4d148, 0xc004aa0200}, 0x0)
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/udb/txquery.go:262 +0x3a
decred.org/dcrwallet/v4/wallet.(*Wallet).GetTransactionsByHashes.func1({0x10410c9e0?, 0xc0069d2a48?})
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/wallet.go:2337 +0xe6
decred.org/dcrwallet/v4/wallet/walletdb.View({0x104110018, 0x105076380}, {0x104112a28, 0xc0032bc488}, 0xc003fb0e00)
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/walletdb/interface.go:222 +0x1a6
decred.org/dcrwallet/v4/wallet.(*Wallet).GetTransactionsByHashes(0xc0032bc488?, {0x104110018?, 0x105076380?}, {0xc003fb0ef8?, 0x1028a51c0?, 0xc003fb0e60?})
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/wallet.go:2334 +0xd2
decred.org/dcrwallet/v4/wallet.(*Wallet).NewVSPTicket(0xc0032bc6c8, {0x104110018, 0x105076380}, 0x0)
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/vspticket.go:43 +0x65
github.com/crypto-power/cryptopower/libwallet/internal/vsp.(*feePayment).receiveFeeAddress(0xc0045b2140)
	/Users/migwindungu/theSecretCoder/App/Golang/src/github.com/dmigwi/cryptopower/libwallet/internal/vsp/feepayment.go:275 +0xa5
github.com/crypto-power/cryptopower/libwallet/internal/vsp.(*Client).Process(0xc0052672c0, {0x1041115d0, 0xc006024600}, 0xc0066de7e0, 0xc007e36230, {0x10411a6e8?, 0x1d0320?, 0xc0?})
	/Users/migwindungu/theSecretCoder/App/Golang/src/github.com/dmigwi/cryptopower/libwallet/internal/vsp/vsp.go:252 +0x259
github.com/crypto-power/cryptopower/libwallet/assets/dcr.(*Asset).buyTicket.func1({0x1041115d0?, 0xc006024600?}, 0xc006024600?, 0xc0076cadc0?)
	/Users/migwindungu/theSecretCoder/App/Golang/src/github.com/dmigwi/cryptopower/libwallet/assets/dcr/ticket.go:477 +0x45
decred.org/dcrwallet/v4/wallet.(*Wallet).purchaseTickets(0xc0032bc6c8, {0x1041115d0, 0xc006024600}, {0x1035197fe, 0x16}, {0x10411a638, 0xc003138ea0}, 0xc003fb1ec0)
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/createtx.go:1874 +0x3098
decred.org/dcrwallet/v4/wallet.(*Wallet).PurchaseTickets(0xc0032bc6c8, {0x1041115d0, 0xc006024600}, {0x10411a638, 0xc003138ea0}, 0xc003fb1ec0)
	/Users/migwindungu/theSecretCoder/App/Golang/pkg/mod/decred.org/dcrwallet/v4@v4.1.1/wallet/wallet.go:1611 +0x67
github.com/crypto-power/cryptopower/libwallet/assets/dcr.(*Asset).buyTicket(0xc0031085b0, {0x104111608?, 0xc0054534f0?}, {0x104e78d70, 0x1}, 0x199bdfe32, 0x159600, 0xc0057a80f0)
	/Users/migwindungu/theSecretCoder/App/Golang/src/github.com/dmigwi/cryptopower/libwallet/assets/dcr/ticket.go:489 +0x2db
github.com/crypto-power/cryptopower/libwallet/assets/dcr.(*Asset).runTicketBuyer.func1()
	/Users/migwindungu/theSecretCoder/App/Golang/src/github.com/dmigwi/cryptopower/libwallet/assets/dcr/ticket.go:417 +0x5a
created by github.com/crypto-power/cryptopower/libwallet/assets/dcr.(*Asset).runTicketBuyer in goroutine 27459
	/Users/migwindungu/theSecretCoder/App/Golang/src/github.com/dmigwi/cryptopower/libwallet/assets/dcr/ticket.go:439 +0xb2b

@dreacot
Copy link
Member

dreacot commented Jun 26, 2024

The confirm password modal to start mixing is stuck spinning

Screenshot from 2024-06-26 09-08-49

The disconnection/re-connection modal keeps stacking themselves, i have to "infinitely" keep clicking okay to close each of them with no end in sight

Screenshot from 2024-06-25 17-08-04

@dreacot
Copy link
Member

dreacot commented Jun 26, 2024

i see this error, but at no point am i asked to unlock my wallet.

i get this error when i click on a ticket to open the ticket details page, the ticket details page opens, but still throws the error in the log

2024-06-26 09:05:00.740 [WRN] DCR: unable to getWallet info using ticket: c55f8dee47ae72b29b6b27f36eec6b05219f2875d3dfd0ef06f13b52c78c7093 Error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-06-26 09:05:00.740 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-06-26 09:05:00.740 [WRN] DCR: unable to getWallet info using ticket: c55f8dee47ae72b29b6b27f36eec6b05219f2875d3dfd0ef06f13b52c78c7093 Error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-06-26 09:05:00.740 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 29, 2024

Confirmation that a ticket can be bought now withOUT crashing the app or creating Tickets that are UNmined:

2024-06-29 18:36:20.819 [INF] DCR: [1] Running ticket buyer
2024-06-29 18:36:59.532 [INF] DCR: Reserved credits for 1 tickets: total fee: 0.00013512 DCR
2024-06-29 18:36:59.533 [INF] DCR: Returning address (account=2 branch=1 child=11)
2024-06-29 18:36:59.533 [INF] DCR: selected input d0846eabe98532a020d7f237dd1840484c5722cdcca0cd3c6b667dc8f3318440:14 (2.68435456 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.533 [INF] DCR: selected input 4ad647d23addd53ae30d9c0417bdc9a37f59b18d6b5a81835a69c976fab1a31b:8 (10.73741824 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.533 [INF] DCR: selected input a073d3d4d223642dd9fce58fa3d93143bc1e5ea43165a0eb0f37500e3d1d8632:0 (0.00262144 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.534 [INF] DCR: selected input a073d3d4d223642dd9fce58fa3d93143bc1e5ea43165a0eb0f37500e3d1d8632:2 (0.00262144 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.534 [INF] DCR: selected input 219272c54466e7422f36c8320071f020477d0c516a6c73513aad8c0ee01adaec:26 (2.68435456 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.534 [INF] DCR: selected input 4ad647d23addd53ae30d9c0417bdc9a37f59b18d6b5a81835a69c976fab1a31b:13 (10.73741824 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.534 [INF] DCR: selected input 219272c54466e7422f36c8320071f020477d0c516a6c73513aad8c0ee01adaec:17 (2.68435456 DCR) for ticket purchase split transaction
2024-06-29 18:36:59.534 [INF] DCR: selected input 14f67030a45fc61fcd4070f083eca700b8e422e5f7c81f602a45127074e94b27:12 (68.88778044 DCR) for ticket purchase split transaction
2024-06-29 18:39:00.076 [INF] DCR: Returning address (account=1 branch=0 child=26)
2024-06-29 18:39:43.707 [INF] WLLT: Inserting unconfirmed transaction 5be9afc97b6499a6db61cd7d4c98d174e742a8e9c1b9ab7eb7befeec801d0e39
2024-06-29 18:39:43.772 [INF] DCR: Completed CoinShuffle++ mix of ticket split transaction 5be9afc97b6499a6db61cd7d4c98d174e742a8e9c1b9ab7eb7befeec801d0e39
2024-06-29 18:39:43.786 [INF] DCR: [1] New Transaction 5be9afc97b6499a6db61cd7d4c98d174e742a8e9c1b9ab7eb7befeec801d0e39
2024-06-29 18:39:43.884 [INF] DCR: Split output is 5be9afc97b6499a6db61cd7d4c98d174e742a8e9c1b9ab7eb7befeec801d0e39:7
2024-06-29 18:39:43.951 [INF] DCR: Returning address (account=1 branch=1 child=0)
2024-06-29 18:39:43.995 [INF] DCR: Returning address (account=1 branch=0 child=27)
2024-06-29 18:39:43.996 [INF] WLLT: Inserting unconfirmed transaction 869f276d35aa6009bba99d087bbf58b915b2cc06683f73e7486b8aaa04117584
2024-06-29 18:39:44.042 [INF] DCR: [1] New Transaction 869f276d35aa6009bba99d087bbf58b915b2cc06683f73e7486b8aaa04117584
2024-06-29 18:40:26.289 [INF] DCR: Published ticket purchase 869f276d35aa6009bba99d087bbf58b915b2cc06683f73e7486b8aaa04117584
2024-06-29 18:40:27.381 [INF] DCR: VSP requires fee 0.00012146 DCR
2024-06-29 18:40:27.420 [INF] DCR: Returning address (account=1 branch=1 child=1)
2024-06-29 18:40:27.455 [INF] WLLT: Inserting unconfirmed transaction 0293b0f8a9084e332fce2905b96ee247143610ff16c48c4b2c1e918366902e10
2024-06-29 18:40:27.588 [INF] DCR: [1] New Transaction 0293b0f8a9084e332fce2905b96ee247143610ff16c48c4b2c1e918366902e10
2024-06-29 18:40:27.727 [INF] DCR: successfully processed 869f276d35aa6009bba99d087bbf58b915b2cc06683f73e7486b8aaa04117584
2024-06-29 18:40:27.729 [INF] DCR: [1] Purchased ticket 869f276d35aa6009bba99d087bbf58b915b2cc06683f73e7486b8aaa04117584 at stake difficulty 68.58200368 DCR
2024-06-29 18:45:22.016 [ERR] UI: the USD exchange rate is disabled
2024-06-29 18:45:22.018 [ERR] UI: the USD exchange rate is disabled

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 29, 2024

@dreacot I don't understand why your confirm spinner reference above has been stuck. I think the issue might be related to your network because all along I have experienced such a situation.

The disconnection/re-connection modal keeps stacking themselves I can't replicate this on my end please confirm if the issues still persists?

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jun 29, 2024

Newly bought ticket is now live:

Screenshot 2024-06-29 at 19 32 09

@dreacot
Copy link
Member

dreacot commented Jul 1, 2024

please resolve conflicts

Copy link
Collaborator

@JustinBeBoy JustinBeBoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dreacot @dmigwi
Do we need stakeShuffle before buy ticket on staking ? If so, notice users when they buy tickets without stakeshuffle

I get this error when buy ticket

2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set

Also I get error when click to my ticket for show detail

2024-07-02 10:31:02.391 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384

@dmigwi dmigwi force-pushed the upgrade-to-decred-2.0 branch from 1b98e86 to 1de2b86 Compare July 2, 2024 14:38
@dmigwi
Copy link
Collaborator Author

dmigwi commented Jul 2, 2024

@dreacot @dmigwi Do we need stakeShuffle before buy ticket on staking ? If so, notice users when they buy tickets without stakeshuffle

I get this error when buy ticket

2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set

Also I get error when click to my ticket for show detail

2024-07-02 10:31:02.391 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384

@JustinBeBoy
Yes! The we need those account set up before the auto ticket purchasing functionality can run.
For the ticket details error, It means that ticket wasn't successfully purchase. Please share more logs to help address the issue.

@dmigwi dmigwi requested review from dreacot and JustinBeBoy July 2, 2024 17:19
@JustinBeBoy
Copy link
Collaborator

@dreacot @dmigwi Do we need stakeShuffle before buy ticket on staking ? If so, notice users when they buy tickets without stakeshuffle
I get this error when buy ticket

2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.601 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set
2024-07-02 10:33:40.602 [ERR] DCR: [5] Ticket purchasing failed: Mixing and Unmixing Accounts are not set

Also I get error when click to my ticket for show detail

2024-07-02 10:31:02.391 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-02 10:31:02.391 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384

@JustinBeBoy Yes! The we need those account set up before the auto ticket purchasing functionality can run. For the ticket details error, It means that ticket wasn't successfully purchase. Please share more logs to help address the issue.

  1. About running ticket buyer, please notice for user if it not set up it before
  2. About detail ticket: It's all log i have, I will show when you click into the ticket to go to ticket detail(every ticket include Revoke and voted).
    This is new log when you update your code:
2024-07-04 14:37:00.704 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-07-04 14:37:00.704 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-07-04 14:38:09.207 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-07-04 14:38:09.207 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-07-04 14:38:17.897 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default
2024-07-04 14:38:17.897 [ERR] UI: VSPTicketInfo error: wallet.DumpWIFPrivateKey: wallet locked:: wallet.LoadPrivateKey: default

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jul 4, 2024

@JustinBeBoy Your two issue raised above have been addressed. Please review the code again!

The warnings below should be better than the VSPTicketInfo errors logged before:

2024-07-04 15:31:45.327 [INF] DCR: [1] Indexing transactions start height: 1423361, end height: 1424569
2024-07-04 15:31:46.064 [INF] DCR: [1] Transaction index finished at 1424569, 62 transaction(s) indexed in total
2024-07-04 15:32:02.123 [WRN] DCR: cannot query any ticket info when the wallet is locked
2024-07-04 15:32:26.925 [WRN] DCR: cannot query any ticket info when the wallet is locked
2024-07-04 15:32:52.354 [WRN] DCR: cannot query any ticket info when the wallet is locked
2024-07-04 15:32:52.355 [WRN] DCR: cannot query any ticket info when the wallet is locked

For locked wallet do not log error when fetching ticket info
@dmigwi dmigwi force-pushed the upgrade-to-decred-2.0 branch from aeb81ec to 6ab6339 Compare July 4, 2024 13:39
Copy link
Collaborator

@JustinBeBoy JustinBeBoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dmigwi

I still get this log when click on my Revoked ticket(not watch only wallet, you need your wallet have ticket):

2024-07-05 13:58:13.607 [INF] DCR: [5] Running ticket buyer
2024-07-05 13:58:40.884 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-05 13:58:40.884 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-05 13:58:40.884 [WRN] DCR: unable to getWallet info using ticket: cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384 Error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384
2024-07-05 13:58:40.884 [ERR] UI: VSPTicketInfo error: item does not exist: no VSP info for ticket cac52a6d1c83d9688ef5f64aade9635dfb4918f4250a16969b5ad18f35a15384

@dmigwi
Copy link
Collaborator Author

dmigwi commented Jul 5, 2024

...my Revoked ticket(not watch only wallet, you need your wallet have ticket):

Your revoked ticket above indicates that you didn't successfully purchase the said ticket. Something went wrong and your ticket wasn't mined. That ticket hash probably exists only in your local wallet instance and therefore the error when you try to view its details.

@dmigwi dmigwi requested a review from JustinBeBoy July 5, 2024 10:14
@dreacot dreacot merged commit 8708cd8 into crypto-power:master Jul 6, 2024
1 check passed
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.

upgrade to dcrd v2.0
4 participants