Unexpected Balance Change

Discussion in 'Proof-of-stake Mining' started by linas, Oct 19, 2016.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. linas

    linas New Member

    Feb 1, 2016
    3
    0
    Male
    First of all
    I have to admit that I'm fairly basic user of Decred SOLO PoS, so it could be that I'm missing something very basic. Apologies for that if it is the case, otherwise please help me to investigate the following.

    It is important to mention that my ticketbuyer was working actively (being triggered by the PoS ticket price) during the potential incident time frame. In fact it managed to buy some tickets before fees have gone crazy later on (I see specific error in the log saying basically 'fees too high')

    My setup is the following.


    OS:
    Windows VM running Decred Version 0.5.1-beta

    Tools:
    dcrd (no additional options supplied while executing)
    dcrwallet --enablestakemining --prunetickets --reuseaddresses
    dcrticketbuyer -C ticketbuyer.conf (maxperblock=10, maxinmempool=400, maxpriceabsolute=32, balancetomaintain=32,
    minpricescale=0.7,
    feetargetscaling=1.051, everything else - commented out
    )


    Balance check command used:
    dcrctl --wallet getbalance '*' 0 all

    Interesting part, the logs!


    Buyer:

    20:32:15 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -22: TX rejected: transaction 3a6f02f6cc918b6eb0954e39180c8e174ec451316e0b50beb34be7422b1f9c36 has 30000000 fee which is above the allowHighFee check threshold amount of 29600000
    20:34:24 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    20:38:22 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    20:39:46 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    20:50:44 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    20:51:28 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    20:56:29 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    20:57:51 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    21:00:33 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    21:00:54 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    21:06:39 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    21:17:52 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    22:13:19 2016-10-17 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found
    01:22:51 2016-10-18 [ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found

    Wallet:
    20:32:15 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction a80ce6b8f6a93191203f3b580b191e8ff65925794e693b021e2b6c46a764cf25
    20:32:15 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction a80ce6b8f6a93191203f3b580b191e8ff65925794e693b021e2b6c46a764cf25
    20:34:24 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction fac53c2fe10cc0ee146b4ebf3f23f4409d2643d5f9238380acf88a232c23751b
    20:34:24 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction fac53c2fe10cc0ee146b4ebf3f23f4409d2643d5f9238380acf88a232c23751b
    20:38:22 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 9bcfa95a5cc032ea9af1951a8761d051161c5e0afeaafb26662c39af9d69a76a
    20:38:22 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 9bcfa95a5cc032ea9af1951a8761d051161c5e0afeaafb26662c39af9d69a76a
    20:39:46 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 44663dc16834edb610195bc614b7fe999d9bf68365afacf219b6f4affefab05f
    20:39:46 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 44663dc16834edb610195bc614b7fe999d9bf68365afacf219b6f4affefab05f
    20:50:44 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction f3ce4e3d749b4f699c15da7eff8ea3fa8d3852dde480538fc7c8231e4d211ca7
    20:50:44 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction f3ce4e3d749b4f699c15da7eff8ea3fa8d3852dde480538fc7c8231e4d211ca7
    20:51:28 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 3ce2c51e6654d3ddab4e69adb33f79fa841ad6562a45164d4cc8b3ed7ac8ecd1
    20:51:28 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 3ce2c51e6654d3ddab4e69adb33f79fa841ad6562a45164d4cc8b3ed7ac8ecd1
    20:56:29 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 4f916e2444c6126a8f6066106d71ca69dce7587b32cf5f61b60be5aa49c12114
    20:56:29 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 4f916e2444c6126a8f6066106d71ca69dce7587b32cf5f61b60be5aa49c12114
    20:57:51 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 11617395590635805df4851c4ed9258b2c4d5c784c02823ad5ced01e1329dd4c
    20:57:51 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 11617395590635805df4851c4ed9258b2c4d5c784c02823ad5ced01e1329dd4c
    21:00:33 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 977e2f6702913488aef6bca4e8170ffb80a621adf2d4b3345e49fe4679251489
    21:00:33 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 977e2f6702913488aef6bca4e8170ffb80a621adf2d4b3345e49fe4679251489
    21:00:54 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 3e55df4a48e0607674a4a64128dd795f881dcf3364243a53145e6769f1ad3cf6
    21:00:54 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 3e55df4a48e0607674a4a64128dd795f881dcf3364243a53145e6769f1ad3cf6
    21:06:39 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 3a56fb3aa25ae872208f3225c231774bc093e973c235f0d406f89665e8a6a1eb
    21:06:39 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 3a56fb3aa25ae872208f3225c231774bc093e973c235f0d406f89665e8a6a1eb
    21:17:52 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 505140735a5872f1558d56da1cfda788a4acd8470f89b4c4c3f75dad16821dfe
    21:17:52 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 505140735a5872f1558d56da1cfda788a4acd8470f89b4c4c3f75dad16821dfe
    22:13:19 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 9c63689d7895ca244bf53a65dc378a3070ea8bc1541d22203c97183dbc1c1b1d
    22:13:19 2016-10-17 [INF] TMGR: Inserting unconfirmed transaction 9c63689d7895ca244bf53a65dc378a3070ea8bc1541d22203c97183dbc1c1b1d
    01:22:51 2016-10-18 [INF] TMGR: Inserting unconfirmed transaction 3b92ac8713687d17a14ee3ffe20a2c992a1c3e88ec78e34be8c587b1512185dd
    01:22:51 2016-10-18 [INF] TMGR: Inserting unconfirmed transaction 3b92ac8713687d17a14ee3ffe20a2c992a1c3e88ec78e34be8c587b1512185dd

    dcrd (for the sake of simplicity, I only paste the logs around 'incident start time'):
    20:32:14 2016-10-17 [INF] BMGR: Processed 1 block in the last 3m41.96s (21 transactions, 25 stake transactions, height 72936, 2016-10-17 20:31:50 +0000 GMT)
    20:32:15 2016-10-17 [ERR] RPCS: Failed to process transaction 3a6f02f6cc918b6eb0954e39180c8e174ec451316e0b50beb34be7422b1f9c36: transaction 3a6f02f6cc918b6eb0954e39180c8e174ec451316e0b50beb34be7422b1f9c36 has 30000000 fee which is above the allowHighFee check threshold amount of 29600000
    20:32:22 2016-10-17 [INF] CHAN: FORK: Block 00000000000002246e8bc39b6e9a4dc70bf396dc3ecdc5064e8b16ee822e3ca3 (height 72936) forks the chain at height 72935/block 00000000000008a2595c43965f4247e710879d7e5755b0f482b6fa155310d62e, but does not cause a reorganize
    20:34:22 2016-10-17 [INF] BMGR: Processed 2 blocks in the last 2m8.24s (41 transactions, 50 stake transactions, height 72937, 2016-10-17 20:34:16 +0000 GMT)
    20:38:20 2016-10-17 [INF] BMGR: Processed 1 block in the last 3m58.1s (17 transactions, 25 stake transactions, height 72938, 2016-10-17 20:38:15 +0000 GMT)

    Now, from a noob perspective I could only check what balance is missing in my wallet and from the initial checks I'm missing roughly the sum of all transactions visible in Wallet log (not sure why they are duplicated in log, but I only counted one obviously), which have timestamp matching record in Buyer with that interesting error '[ERR] TKBY: Failed to purchase tickets this round: -4: cannot get address info: address not found'.

    Thanks for your time reading all this and I hope somebody will help or point me to the right direction :)
     
  2. ay-p

    ay-p Full Member
    Developer

    Dec 7, 2015
    148
    106
    Male
    So first, concerning the address not found err, that was fixed in the most recent release. Basically, address manager and the database would get out of sync and therefore previously spent outputs were no longer found. From what we could tell a reseed is necessary to fix a wallet in this state, and with the fix we added it should never get out of step again.

    Can you start there and check balance again?

    Also looks like (due to ticketbuyer) you are trying to set super high fees for your tx. I'd strongly suggest to set a reasonable --maxfee for your ticketbuyer.
     
  3. linas

    linas New Member

    Feb 1, 2016
    3
    0
    Male
  4. h3rtl31n

    h3rtl31n New Member
    Translator (Deutsch)

    Dec 28, 2015
    34
    2
    Male
    I am now on version 0.61 and have the exact same issue mentioned here.
     

Share This Page