Skip to content

Conversation

JeremyRubin
Copy link
Contributor

Previously, I duplicated the SignatureCacheHasher in the cuckoocache tests to avoid extra changes/review in the cuckoocache pr. This moves the SignatureCacheHasher to the sigcache header, out of the anonymous namespace, so that the tests can import it.

Not very critical, but it is good to make sure that these implementations don't ever diverge by only having this class defined once.

@maflcko
Copy link
Member

maflcko commented Jan 6, 2017

Everyone-loves-negative-net-diffs ACK 0b829c0

@NicolasDorier
Copy link
Contributor

utACK 0b829c0

@paveljanik
Copy link
Contributor

ACK 0b829c0

@gmaxwell
Copy link
Contributor

gmaxwell commented Jan 7, 2017

utACK

@morcos
Copy link
Contributor

morcos commented Jan 7, 2017

utACK but please don't mark this as trivial

@maflcko maflcko changed the title [trivial] De-duplicate SignatureCacheHasher De-duplicate SignatureCacheHasher Jan 7, 2017
@TheBlueMatt
Copy link
Contributor

utACK

@ryanofsky
Copy link
Contributor

utACK, checked moved/copied code is the same.

@JeremyRubin JeremyRubin force-pushed the refactor-signaturecachehasher-visibility branch from 0b829c0 to 99f45f7 Compare March 28, 2017 17:14
@JeremyRubin
Copy link
Contributor Author

I reworded the commit because I had accidentally used trivial in it originally.

Code move not changed.

@TheBlueMatt
Copy link
Contributor

Needs rebase.

@JeremyRubin JeremyRubin force-pushed the refactor-signaturecachehasher-visibility branch from 99f45f7 to 4fe30d5 Compare April 12, 2017 17:07
@JeremyRubin
Copy link
Contributor Author

rebased

@TheBlueMatt
Copy link
Contributor

Please add an extra line between the commit title and the commit message, for some reason git likes to think that its all intended as a multi-line-super-long title if you dont.

This moves the SignatureCacheHasher to the sigcache header, out of the anonymous
namespace, so that the tests can import it.
@JeremyRubin JeremyRubin force-pushed the refactor-signaturecachehasher-visibility branch from 4fe30d5 to f9c8807 Compare April 12, 2017 21:43
@JeremyRubin
Copy link
Contributor Author

@TheBlueMatt I think that's a local issue in your git client settings, I can't reproduce it. Nonetheless, I inserted an additional newline.

@sipa sipa merged commit f9c8807 into bitcoin:master Apr 13, 2017
sipa added a commit that referenced this pull request Apr 13, 2017
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
@jtimon
Copy link
Contributor

jtimon commented Apr 18, 2017

after-merge utACK f9c8807

PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 21, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 21, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 22, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 22, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 22, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 22, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request May 23, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
UdjinM6 pushed a commit to UdjinM6/dash that referenced this pull request May 28, 2019
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
f9c8807 Deduplicate SignatureCacheHasher (Jeremy Rubin)

Tree-SHA512: 714a0f39d1c836fedd1868369b4ebf1096cd800cc544d57b54101da338c80c627a3e59c6644b3268054efe85053cf1a7be508af935f624491e7acfae61123994
random-zebra added a commit to PIVX-Project/PIVX that referenced this pull request Jul 3, 2020
2749d0a build: Include cuckoocache header in Makefile (furszy)
791a51f Deduplicate SignatureCacheHasher (Jeremy Rubin)
7a5918a Decrease testcase sizes in cuckoocache tests (Jeremy Rubin)
8ef3cc9 Trivial: fix comments referencing AppInit2 (Marko Bencun)
f21b122 Ensure `-maxsigcachesize` is in valid range (John Newbery)
464b922 Add unit tests for the CuckooCache (Jeremy Rubin)
77e3b1e Add CuckooCache implementation and replace the sigcache map_type with it (Jeremy Rubin)

Pull request description:

  Built on top of #1668.

  Part of the back port series to get us closer to upstream's sigcache current state.

  The main ones are:

  * bitcoin#8895
  * bitcoin#9480
  * bitcoin#9393

ACKs for top commit:
  random-zebra:
    Really nice backport. Tested ACK 2749d0a
  Fuzzbawls:
    utACK 2749d0a

Tree-SHA512: 22f760edc928790f29a7bbd6e907a561b7ad266b6cc5e85f207206e0f39ae3e4328ec57c0be772c96036a15559b13f6956bea5762cace10f3a560090aeb6758b
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
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.