Skip to content

Commit 8d5cf82

Browse files
committed
test: fix ci failures
1 parent bf81699 commit 8d5cf82

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ TESTS += musig_example
209209
if ENABLE_MODULE_BATCH
210210
noinst_PROGRAMS += batch_example
211211
batch_example_SOURCES = examples/batch.c
212-
batch_example_CPPFLAGS = -I$(top_srcdir)/include
212+
batch_example_CPPFLAGS = -I$(top_srcdir)/include -DSECP256K1_STATIC
213213
batch_example_LDADD = libsecp256k1.la
214214
batch_example_LDFLAGS = -static
215215
if BUILD_WINDOWS

ci/ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ esac
8080
--enable-module-extrakeys="$EXTRAKEYS" \
8181
--enable-module-schnorrsig="$SCHNORRSIG" \
8282
--enable-module-musig="$MUSIG" \
83-
--enable-module-batch="$BATCH"
83+
--enable-module-batch="$BATCH" \
8484
--enable-examples="$EXAMPLES" \
8585
--enable-ctime-tests="$CTIMETESTS" \
8686
--with-valgrind="$WITH_VALGRIND" \

src/modules/batch/main_impl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static size_t secp256k1_batch_scratch_size(int max_terms) {
5959

6060
/** Clears the scalar and points allocated on the batch object's scratch space */
6161
static void secp256k1_batch_scratch_clear(secp256k1_batch* batch) {
62-
secp256k1_scalar_clear(&batch->sc_g);
62+
secp256k1_scalar_set_int(&batch->sc_g, 0);
6363
/* setting the len = 0 will suffice (instead of clearing the memory)
6464
* since, there are no secrets stored on the scratch space */
6565
batch->len = 0;
@@ -134,7 +134,7 @@ secp256k1_batch* secp256k1_batch_create(const secp256k1_context* ctx, size_t max
134134
}
135135

136136
/* set remaining data members */
137-
secp256k1_scalar_clear(&batch->sc_g);
137+
secp256k1_scalar_set_int(&batch->sc_g, 0);
138138
secp256k1_batch_sha256_tagged(&batch->sha256);
139139
if (aux_rand16 != NULL) {
140140
secp256k1_sha256_write(&batch->sha256, aux_rand16, 16);

src/modules/extrakeys/Makefile.am.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ include_HEADERS += include/secp256k1_tweak_check_batch.h
44
endif
55
noinst_HEADERS += src/modules/extrakeys/tests_impl.h
66
noinst_HEADERS += src/modules/extrakeys/tests_exhaustive_impl.h
7+
noinst_HEADERS += src/modules/extrakeys/bench_impl.h
78
noinst_HEADERS += src/modules/extrakeys/main_impl.h
89
if ENABLE_MODULE_BATCH
910
noinst_HEADERS += src/modules/extrakeys/batch_add_impl.h

0 commit comments

Comments
 (0)