diff options
| author | Ben Woosley <[email protected]> | 2018-04-12 13:30:04 -0700 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2019-03-04 01:30:29 -0800 |
| commit | 47101bbb27d0e13ea2b40ce1c7ff0dba9030f369 (patch) | |
| tree | 40bfd19c015a4e23c39d0ecc4af56f1101735288 /src/psbt.h | |
| parent | Merge #15118: Refactor block file logic (diff) | |
| download | discoin-47101bbb27d0e13ea2b40ce1c7ff0dba9030f369.tar.xz discoin-47101bbb27d0e13ea2b40ce1c7ff0dba9030f369.zip | |
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-
Diffstat (limited to 'src/psbt.h')
| -rw-r--r-- | src/psbt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/psbt.h b/src/psbt.h index c889dad36..99a56b3b3 100644 --- a/src/psbt.h +++ b/src/psbt.h @@ -165,7 +165,7 @@ struct PSBTInput case PSBT_IN_PARTIAL_SIG: { // Make sure that the key is the size of pubkey + 1 - if (key.size() != CPubKey::PUBLIC_KEY_SIZE + 1 && key.size() != CPubKey::COMPRESSED_PUBLIC_KEY_SIZE + 1) { + if (key.size() != CPubKey::SIZE + 1 && key.size() != CPubKey::COMPRESSED_SIZE + 1) { throw std::ios_base::failure("Size of key was not the expected size for the type partial signature pubkey"); } // Read in the pubkey from key |