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 2efe5eed1ec0 , 4 in 8 out #11

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

test case 2efe5eed1ec0 , 4 in 8 out #11

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/2efe5eed1ec0f8c16d8a97453c06092608818ea057f03e14f6d6f2b5e3b67173

This transaction is a 4 way mix. The transaction has 8 outputs. The result will be 25% for 4 of them, and 100% for the other 4.

@dmigwi
Copy link
Contributor

dmigwi commented Nov 26, 2018

Here is the best solution

{
    "TotalFees": 0.001012,
    "Granularity": 2,
    "FundsFlow": [
        {
            "Fee": 0.000253,
            "Inputs": {
                "Sum": 767.99093441,
                "Values": [
                    767.99093441
                ]
            },
            "MatchedOutputs": {
                "Sum": 767.99068141,
                "Values": [
                    25.77862851,
                    742.2120529
                ]
            }
        },
        {
            "Fee": 0.000253,
            "Inputs": {
                "Sum": 767.99115141,
                "Values": [
                    767.99115141
                ]
            },
            "MatchedOutputs": {
                "Sum": 767.99089841,
                "Values": [
                    25.77862851,
                    742.2122699
                ]
            }
        },
        {
            "Fee": 0.000253,
            "Inputs": {
                "Sum": 845.32714494,
                "Values": [
                    845.32714494
                ]
            },
            "MatchedOutputs": {
                "Sum": 845.32689194,
                "Values": [
                    25.77862851,
                    819.54826343
                ]
            }
        },
        {
            "Fee": 0.000253,
            "Inputs": {
                "Sum": 922.66378947,
                "Values": [
                    922.66378947
                ]
            },
            "MatchedOutputs": {
                "Sum": 922.66353647,
                "Values": [
                    25.77862851,
                    896.88490796
                ]
            }
        }
    ]
}

@dmigwi
Copy link
Contributor

dmigwi commented Nov 30, 2018

Probability solution:

[
    {
        "OutputAmount": 25.77862851,
        "ProbableInputs": [
            767.99093441,
            767.99115141,
            845.32714494,
            922.66378947
        ],
        "Probability": 25
    },
    {
        "OutputAmount": 742.2120529,
        "ProbableInputs": [
            767.99093441
        ],
        "Probability": 100
    },
    {
        "OutputAmount": 742.2122699,
        "ProbableInputs": [
            767.99115141
        ],
        "Probability": 100
    },
    {
        "OutputAmount": 819.54826343,
        "ProbableInputs": [
            845.32714494
        ],
        "Probability": 100
    },
    {
        "OutputAmount": 896.88490796,
        "ProbableInputs": [
            922.66378947
        ],
        "Probability": 100
    }
]

@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