Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Dogecoin support -- wow #2824

Closed
wants to merge 1 commit into from
Closed

Dogecoin support -- wow #2824

wants to merge 1 commit into from

Conversation

rht
Copy link

@rht rht commented Oct 19, 2014

Someone needs to do it. resolves #2685.

@@ -43,6 +43,7 @@ CREATE TABLE participants
, paypal_email text DEFAULT NULL
, anonymous_receiving boolean NOT NULL DEFAULT FALSE
, bitcoin_address text DEFAULT NULL
, dogecoin_address text DEFAULT NULL
Copy link
Contributor

Choose a reason for hiding this comment

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

@rht - We don't make edits to schema.sql directly.

We keep our database schema in schema.sql, and we write schema changes for each PR branch in a branch.sql file, which then gets run against production and appended to schema.sql during deployment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Here's an example of a PR with branch.sql :)

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the pointer.

@Changaco
Copy link
Contributor

This PR is 100% code duplication. I don't even know why we have specific support for Bitcoin since you can just put your address in your profile statement, but if you want to add support for other cryptocoins the proper way to do it would be to generalize the Bitcoin code, not duplicate it.

);

END;

Copy link
Contributor

Choose a reason for hiding this comment

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

We don't have this kind of dedicated table + rule anymore, we put everything in the events table.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah, this PR is one step to encourage the generalized solution with various cryptocurrencies.

Adding a dedicated payment receiving option is semantically better than putting them all in the profile statement.

@chadwhitacre
Copy link
Contributor

Thanks for the contribution, @rht! 💃 🐕

@chadwhitacre chadwhitacre force-pushed the master branch 2 times, most recently from cf99c0f to 11fcaf3 Compare October 20, 2014 17:37
@chadwhitacre chadwhitacre force-pushed the master branch 3 times, most recently from bb509d8 to 0d20225 Compare November 3, 2014 21:49
@blrhc
Copy link
Contributor

blrhc commented Nov 11, 2014

I think adding support for dogecoin might be a good idea, but if you're going to add dogecoin then other cryptocurrencies also need to be considered.

@rht
Copy link
Author

rht commented Nov 13, 2014

@benhc123 thanks for the reminder. Agreed.

request.allow("POST")

bit_address = request.body['dogecoin_address'].strip()
if bit_address != '' and not bitcoin.validate(bit_address, version=0x1E):
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this version parameter do?

Copy link
Author

Choose a reason for hiding this comment

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

version=0 is for bitcoin, version=0x1E is for dogecoin.

@Changaco Changaco mentioned this pull request Jan 3, 2015
8 tasks
@Changaco Changaco mentioned this pull request Mar 24, 2015
@Changaco
Copy link
Contributor

This is no longer blocked, changes to facilitate adding other cryptocoins have been made in #3282.

@chadwhitacre
Copy link
Contributor

Changed to WIP, because Ready to Start doesn't make sense for PRs—the work is already started! If we don't want to use any of the work already on this PR then let's close this and mark #2685 Ready to Start.

@rht
Copy link
Author

rht commented Mar 31, 2015

But coinbase doesn't accept dogecoin yet.

@rohitpaulk
Copy link
Contributor

But coinbase doesn't accept dogecoin yet.

We don't need coinbase to display a dogecoin address on one's profile.

@blrhc
Copy link
Contributor

blrhc commented Mar 31, 2015

I think Dogecoin has gone out of fashion now. We need support for Bitcoin but for others it's less vital.

On 31 Mar 2015, at 14:16, Rohit Paul Kuruvilla [email protected] wrote:

But coinbase doesn't accept dogecoin yet.

We don't have to use coinbase to display a dogecoin address on one's profile.


Reply to this email directly or view it on GitHub.

@chadwhitacre
Copy link
Contributor

... and I'm not sure we need Bitcoin either (gratipay/inside.gratipay.com#201 (comment)), but that's a separate issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support dogecoin
6 participants