bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

Import bufferput into bitcore

Open ryanxcharles opened this issue 12 years ago • 6 comments

We constanty have issues with bufferput. Would be easier to deal with if we just imported it into bitcore.

ryanxcharles avatar Feb 17 '14 22:02 ryanxcharles

I think part of the problem is because the bufferput module in the npm registry hasn't been updated with the fix from this commit https://github.com/bitpay/node-bufferput/commit/6b2ad518e08704f3ed61918f80076525a6cb0453

(i.e. the bufferput module from npm install bitcoin or from npm install in a cloned bitcore repo doesn't contain the fixed version)

discretepackets avatar Feb 18 '14 08:02 discretepackets

What do you think of updating the dependency to point to https://github.com/bitpay/node-bufferput instead of the npm package?

Like we did with "browserify-bignum": "git://github.com/maraoz/browserify-bignum.git"

maraoz avatar Feb 18 '14 14:02 maraoz

@maraoz That is an OK solution, too.

It is tiny and not widely used outside of bitcore, so reducing the number of dependencies by incorporating into bitcore seemed easy, efficient, and likely to permanently solve the reported problems.

jgarzik avatar Feb 18 '14 15:02 jgarzik

@maraoz @jgarzik

Sorry, I'm not that familiar with participating in open source projects yet. (I was confused by who the "you" in "What do you think ..." was referring to.)

Should I make changes and submit a pull request?? Any changes made with the node-bufferput dependency should be applied to the insight repo too though.

discretepackets avatar Feb 19 '14 14:02 discretepackets

I created PR #90 for issue #88. The solution is the same as @maraoz mentioned here so this PR might solve this issue as well.

trapp avatar Feb 24 '14 10:02 trapp

Pulled in PR #90 which fixed issue #88. Will regard this issue as closed as well.

ryanxcharles avatar Feb 24 '14 15:02 ryanxcharles