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

test case 8fd4b78 #9

Open
raedah opened this issue Nov 15, 2018 · 2 comments
Open

test case 8fd4b78 #9

raedah opened this issue Nov 15, 2018 · 2 comments
Labels
Test Case Needed to test various major features to ensure accurate solution is created always.

Comments

@raedah
Copy link
Member

raedah commented Nov 15, 2018

https://testnet.dcrdata.org/tx/8fd4b78497398405faee664297c1036ad2778dc9f56ab6194708e4ec9da8d6b9

@dmigwi
Copy link
Contributor

dmigwi commented Nov 26, 2018

Here is the Best solution:

{
    "TotalFees": 0.01321,
    "Granularity": 42,
    "FundsFlow": [
        {
            "Fee": 0.006522,
            "Inputs": {
                "Sum": 785.66397442,
                "Values": [
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    31.93844007, 31.93844007
                ]
            },
            "MatchedOutputs": {
                "Sum": 785.65745242,
                "Values": [
                    6.48298981,
                    6.48298981, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682
                ]
            }
        },
        {
            "Fee": 0.006688,
            "Inputs": {
                "Sum": 792.12506311,
                "Values": [
                    6.46108869, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051, 25.77811051,
                    25.77811051, 31.93844007,31.93844007
                ]
            },
            "MatchedOutputs": {
                "Sum": 792.11837511,
                "Values": [
                    6.48298981,  12.9439125, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682,
                    19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682, 19.31728682
                ]
            }
        }
    ]
}

@dmigwi
Copy link
Contributor

dmigwi commented Dec 1, 2018

Probability solution:

[
    {
        "OutputAmount": 6.48298981,
        "Count": 3,
        "Probability": 1.6667,
        "ProbableInputs": [
            {
                "Amount": 25.77811051,
                "Count": 56
            },
            {
                "Amount": 31.93844007,
                "Count": 4
            }
        ]
    },
    {
        "OutputAmount": 19.31728682,
        "Count": 80,
        "Probability": 1.6667,
        "ProbableInputs": [
            {
                "Amount": 25.77811051,
                "Count": 56
            },
            {
                "Amount": 31.93844007,
                "Count": 4
            }
        ]
    },
    {
        "OutputAmount": 12.9439125,
        "Count": 1,
        "Probability": 1.6667,
        "ProbableInputs": [
            {
                "Amount": 31.93844007,
                "Count": 4
            },
            {
                "Amount": 25.77811051,
                "Count": 56
            }
        ]
    }
]

@dmigwi dmigwi added the Test Case Needed to test various major features to ensure accurate solution is created always. label Dec 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test Case Needed to test various major features to ensure accurate solution is created always.
Projects
None yet
Development

No branches or pull requests

2 participants