-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Transaction: WIP, rename internal variables #440
Conversation
Still a breaking change though as we did not remove Transaction from index export. |
No doubt. Added the tag. |
@weilu are you in favour though? |
We already have a lot of breaking changes in 2.0. The argument can go either way based on that. Hell, let's just get it over and done with. Can you promise this is the last one though? ;) |
Will make this change for |
Other thoughts:
|
Quite a bike shed. Just curious, why are we changing bitcoinjs to be consistent with common-blockchain not the other way round? TBH some of our current names make more sense to me (e.g. If we want to be exactly the same as bitcoin/bitcoin RPC, whatevs, doesn't bother me much. |
The common-blockchain naming conventions require less context, compared to
IMHO, I'd be happy if we just went with |
Though even |
@fanatid thoughts on this? |
@dcousens I'd like see names like in bitcoin-core/bitcoin-core rpc/BIPs. |
@fanatid what were they again? I use custom RPC calls throughout my stack. In any case, they don't have the
|
Seems to have consensus.
About it. |
The only reasonable changes here would be |
This is just a WIP PR, but it should show case a change I'd like to make to the internals of
Transaction
.Assuming most people are using
TransacitonBuilder
, these changes should be no less disruptive then what has already happened.This would make the variable naming convention consistent with common-blockchain and most naming conventions for bitcoin transactions.
Open to feedback.