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

Delegator had no such ruleset #9

Closed
noisy opened this issue Jun 26, 2018 · 5 comments
Closed

Delegator had no such ruleset #9

noisy opened this issue Jun 26, 2018 · 5 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@noisy
Copy link
Contributor

noisy commented Jun 26, 2018

I am getting:

[  
   "v2:confirm_vote",
   {  
      "voter":"fervi",
      "tx_id":"b6a687ffaf715007031b04f8ea1defafaad611e6",
      "accepted":false,
      "msg":"Delegator had no such ruleset (name=Na wsparcie polskiej spoleczności tagu pl-artykuly) at specified datetime."
   }
]

Despite the fact of having defined ruleset:

    {
        "voter": "fervi",
        "rulesets": [
            {
                "name": "Na wsparcie polskiej spoleczności tagu pl-artykuly",
                "rules": [
                    {
                        "rule": "weight",
                        "mode": "single_vote_weight",
                        "min": -1000,
                        "max": 5000
                    },
                    {
                        "rule": "tags",
                        "mode": "any",
                        "tags": [
                            "pl-artykuly"
                        ]
                    }
                ]
            },
            {
                "name": "Flagi na #polish",
                "rules": [
                    {
                        "rule": "weight",
                        "mode": "single_vote_weight",
                        "min": -1000,
                        "max": 0
                    },
                    {
                        "rule": "tags",
                        "mode": "require",
                        "tags": [
                            "polish"
                        ]
                    }
                ]
            }
        ]
    }

and

$ ./wise -c config.json sync-rules rules.json 
Rules are up to date
@noisy noisy added the bug Something isn't working label Jun 26, 2018
@Jblew
Copy link
Member

Jblew commented Jul 3, 2018

How long did you wait between setting up this rule and sending voteorder? Is it possible that this period was shorter than 3 minutes? (there is a lag between HEAD and account_history_api)

@noisy
Copy link
Contributor Author

noisy commented Jul 4, 2018

no, this is was long after creation of the rule

@noisy noisy added this to High priority in Wise Jul 4, 2018
@noisy noisy moved this from TODO (High priority) to TODO (Low priority) in Wise Jul 6, 2018
@noisy noisy self-assigned this Jul 6, 2018
@noisy noisy moved this from TODO (Low priority) to TODO (High priority) in Wise Aug 1, 2018
@noisy
Copy link
Contributor Author

noisy commented Aug 1, 2018

Very interesting... happen in:

https://steemd.com/tx/79c729593a73b6ecc338eef8e10facddb7db477f

selection_982

the problem is... that @Astromaniak never had a rule about tag pl-prawo... but you know who have? A person above astromaniak - krasnalek.

    {   
        "voter": "krasnalek",
        "rulesets": [
            {   
                "name": "Na wsparcie polskiej spolecznosci tagu pl-prawo",
                "rules": [
                    {   
                        "rule": "weight",
                        "mode": "single_vote_weight",
                        "min": -1000,
                        "max": 5000
                    },
                    {   
                        "rule": "tags",
                        "mode": "any",
                        "tags": [
                            "pl-prawo"
                        ]
                    }
                ]
            },
            {   
                "name": "Flagi na #polish",
                "rules": [
                    {   
                        "rule": "weight",
                        "mode": "single_vote_weight",
                        "min": -1000,
                        "max": 0
                    },
                    {   
                        "rule": "tags",
                        "mode": "require",
                        "tags": [
                            "polish"
                        ]
                    }
                ]
            }
        ]
    },
    {   
        "voter": "astromaniak",
        "rulesets": [
            {   
                "name": "Na wsparcie polskiej spolecznosci tagu pl-kosmos",
                "rules": [
                    {   
                        "rule": "weight",
                        "mode": "single_vote_weight",
                        "min": -1000,
                        "max": 5000
                    },
                    {   
                        "rule": "tags",
                        "mode": "any",
                        "tags": [
                            "pl-kosmos"
                        ]
                    }
                ]
            },
            {   
                "name": "Flagi na #polish",
                "rules": [
                    {   
                        "rule": "weight",
                        "mode": "single_vote_weight",
                        "min": -1000,
                        "max": 0
                    },
                    {   
                        "rule": "tags",
                        "mode": "require",
                        "tags": [
                            "polish"
                        ]
                    }
                ]
            }
        ]
    },

@Jblew it looks like this might be some kind of "wrong-index" problem. For sure, one user was validated by rules of another user

@Jblew Jblew self-assigned this Aug 2, 2018
@Jblew Jblew moved this from TODO (High priority) to In progress in Wise Aug 3, 2018
Jblew referenced this issue in wise-team/steem-wise-core Aug 7, 2018
@noisy
Copy link
Contributor Author

noisy commented Aug 8, 2018

🎉

@Jblew
Copy link
Member

Jblew commented Aug 9, 2018

I have described a winding path leading to solving this problem in a separate article on steem: https://steemit.com/polish/@jblew/delegator-had-no-such-ruleset-historia-pewnego-bledu-w-wise

So — the bug is now solved :D

@Jblew Jblew closed this as completed Aug 9, 2018
Wise automation moved this from In progress to Closed Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Wise
Closed/Deployed
Development

No branches or pull requests

2 participants