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

Add pool identification by output address #2

Closed
wants to merge 1 commit into from

Conversation

spencerr
Copy link

Checks the outputs of the transaction for known pool addresses specified
in addresses.json. Returns P2Pool is there are more than 1 output
addresses in the transaction.

Checks the outputs of the transaction for known pool addresses specified
in addresses.json. Returns P2Pool is there are more than 1 output
addresses in the transaction.
"address": "VpYQTF5W927YRNxP9osKTTqH3qi8R2r4sB",
"url": "http://coinotron.com"
}
]

Choose a reason for hiding this comment

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

Can't the address field be added to pools.json, to avoid having 2 separate pool lists to maintain?

Also might be worth changing the address field to an array of addresses -- didn't Coinotron used to have a different address? (VuPp8H4W3g1dmwGg6pe41D2Khw8JvfEznn?)

@@ -350,6 +360,10 @@ BlockController.prototype.getPoolInfo = function(tx) {
}
}

if (tx.outputs.length > 1) {
return { "poolName": "P2Pool", "url": "https://vertcoin.org" };

Choose a reason for hiding this comment

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

This is probably correct but IMO doesn't feel right to assume that multiple outputs must be P2Pool. I'm not sure if there's any other way to detect a P2Pool block though (@metalicjames it would be useful if P2Pool would put something in the coinbase like other pools)

It would be nice to be able to configure the pool name & url from pools.json somehow, maybe something like this could work?

{
    "poolName": "P2Pool",
    "url": "https://scanner.vertcoin.org",
    "hasManyOutputs": true
}

@metalicjames
Copy link

Superseded by #4 and #5

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.

3 participants