scripted-diff: Rename key size consts to be relative to their class #12461
pull Empact wants to merge 2 commits into bitcoin:master from Empact:key-size-consts changing 8 files +45 −45-
Empact commented at 8:39 pm on February 16, 2018: member
And introduce CPubKeySig to host code relative to key sigs. -
devrandom commented at 9:22 pm on February 16, 2018: none
-
fanquake added the label Refactoring on Feb 17, 2018
-
in src/pubkey.h:29 in 3f457249c1 outdated
25@@ -26,40 +26,48 @@ class CKeyID : public uint160 26 27 typedef uint256 ChainCode; 28 29+class CPubKeySig
jonasschnelli commented at 11:11 am on February 17, 2018:Why not a namespace?jonasschnelli commented at 11:12 am on February 17, 2018: contributorConcept ACK. Not sure ifCPubKeySig
needs its own space.Empact force-pushed on Feb 19, 2018Empact force-pushed on Feb 19, 2018Empact commented at 0:26 am on February 19, 2018: memberThanks, made PubKeySig a namespace.Empact force-pushed on Feb 20, 2018Empact commented at 8:51 pm on February 20, 2018: memberOn second thought, dropped PubKeySig - without any other code it’s barely a separate concern.Empact renamed this:
Refactor key / signature size consts to be relative to their relevant class
Refactor key size consts to be relative to their relevant class
on Feb 20, 2018instagibbs commented at 7:01 pm on February 26, 2018: memberseemingly unrelated travis error:
File “/home/travis/build/bitcoin/bitcoin/build/bitcoin-i686-pc-linux-gnu/test/functional/rpc_net.py”, line 54, in _test_getnettotals assert_equal(before[‘bytesrecv_per_msg’][‘pong’] + 32, after[‘bytesrecv_per_msg’][‘pong’])
kicked travis
Empact commented at 7:35 pm on February 26, 2018: member@instagibbs thanks - seems like that is a timing-related failure, I pushed #12545 to increase the wait, and reduce the likelihood of spurious failures.MarcoFalke commented at 1:10 am on March 19, 2018: memberNeeds rebase if still relevantEmpact force-pushed on Mar 19, 2018Empact force-pushed on Mar 19, 2018Empact commented at 7:01 am on March 21, 2018: memberRebasedfanquake requested review from sipa on Mar 21, 2018Empact force-pushed on Apr 12, 2018Empact force-pushed on Apr 12, 2018Empact commented at 8:32 pm on April 12, 2018: memberRebased & reimplemented as a scripted-diffEmpact renamed this:
Refactor key size consts to be relative to their relevant class
scripted-diff: Rename key size consts to be relative to their class
on Apr 12, 2018Empact force-pushed on Apr 13, 2018Empact force-pushed on Apr 17, 2018sipa commented at 0:16 am on May 17, 2018: memberutACK f1583f26f2d9cb199ace6054a67797e1d4d9bed0Empact force-pushed on Jun 1, 2018Empact force-pushed on Jun 1, 2018Empact force-pushed on Jul 17, 2018Empact commented at 6:08 pm on July 17, 2018: memberRebased to confirm scripted-diff still applies. It does. 👍MarcoFalke commented at 6:04 pm on September 7, 2018: memberutACK 2dda5dd034, but please note that the scripted diff will modify files outside the git tree. I’d prefer to avoid that.MarcoFalke closed this on Sep 7, 2018
MarcoFalke reopened this on Sep 7, 2018
Empact force-pushed on Sep 11, 2018Empact force-pushed on Sep 11, 2018Empact commented at 4:55 am on September 11, 2018: memberUpdated to include 2 new cases, and brought it down to a singlesed
call which only acts on files in the repo.DrahtBot added the label Needs rebase on Sep 13, 2018Empact force-pushed on Sep 15, 2018DrahtBot removed the label Needs rebase on Sep 15, 2018in src/pubkey.h:37 in 40c69642bd outdated
32@@ -33,33 +33,33 @@ class CPubKey 33 /** 34 * secp256k1: 35 */ 36- static constexpr unsigned int PUBLIC_KEY_SIZE = 65; 37- static constexpr unsigned int COMPRESSED_PUBLIC_KEY_SIZE = 33; 38+ static constexpr unsigned int SIZE = 65; 39+ static constexpr unsigned int COMPRESSED_SIZE = 33;
ken2812221 commented at 7:17 am on December 2, 2018:nit: Could have another commit to fix the format hereken2812221 approvedken2812221 commented at 7:18 am on December 2, 2018: contributorutACK 40c69642bd4bed49d17b75e3f544afbc8d10e8aeDrahtBot commented at 12:50 pm on December 17, 2018: memberThe following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #16463 ([BIP 174] Implement serialization support for GLOBAL_XPUB field. by achow101)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
DrahtBot added the label Needs rebase on Feb 14, 2019Empact force-pushed on Mar 4, 2019Empact commented at 9:28 am on March 4, 2019: memberRebased, added a commit to fixup whitespace.scripted-diff: Rename CPubKey and CKey::*_KEY_SIZE and COMPRESSED_*_KEY_SIZE
To SIZE and COMPRESSED_SIZE -BEGIN VERIFY SCRIPT- sed -i 's/PRIVATE_KEY_SIZE/SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp sed -i 's/COMPRESSED_PRIVATE_KEY_SIZE/COMPRESSED_SIZE/g' src/*.h src/**/*.cpp src/**/*.h src/**/*.cpp sed -i 's/PUBLIC_KEY_SIZE/SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp sed -i 's/COMPRESSED_PUBLIC_KEY_SIZE/COMPRESSED_SIZE/g' src/*.h src/*.cpp src/**/*.h src/**/*.cpp -END VERIFY SCRIPT-
Fixup whitespace 0580f86bb4Empact force-pushed on Mar 4, 2019DrahtBot removed the label Needs rebase on Mar 4, 2019meshcollider commented at 4:01 am on April 14, 2019: contributorlaanwj referenced this in commit 36191a8bb5 on Nov 20, 2019laanwj merged this on Nov 20, 2019laanwj closed this on Nov 20, 2019
sidhujag referenced this in commit 118ec28752 on Nov 20, 2019jasonbcox referenced this in commit 64fb78dde1 on Oct 7, 2020sidhujag referenced this in commit 1af8b4b2c2 on Nov 10, 2020UdjinM6 referenced this in commit 81b8eb4083 on Aug 10, 20215tefan referenced this in commit da55971c71 on Aug 12, 2021MarcoFalke locked this on Dec 16, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 15:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me