Skip to content

Commit

Permalink
Missing define
Browse files Browse the repository at this point in the history
  • Loading branch information
belijzajac committed Jun 17, 2023
1 parent 88519ec commit 33225b0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
17 changes: 15 additions & 2 deletions blst/nodejs.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
From 9edece17f27548729027f255712cbd2d233ca3c8 Mon Sep 17 00:00:00 2001
From 344b90e309d605d454cbb962da0531bcb062b11a Mon Sep 17 00:00:00 2001
From: belijzajac <[email protected]>
Date: Sat, 17 Jun 2023 19:16:04 +0300
Subject: [PATCH] Update linking

---
bindings/node.js/Makefile | 1 -
bindings/node.js/binding.gyp | 37 +++++-------------------------------
2 files changed, 5 insertions(+), 33 deletions(-)
bindings/node.js/src/kzg.cxx | 4 ++++
3 files changed, 9 insertions(+), 33 deletions(-)

diff --git a/bindings/node.js/Makefile b/bindings/node.js/Makefile
index fdf1618..34e54df 100644
Expand Down Expand Up @@ -74,6 +75,18 @@ index 69be3ef..349ac0b 100644
}
]
}
diff --git a/bindings/node.js/src/kzg.cxx b/bindings/node.js/src/kzg.cxx
index 871aa90..f89b1e3 100644
--- a/bindings/node.js/src/kzg.cxx
+++ b/bindings/node.js/src/kzg.cxx
@@ -1,3 +1,7 @@
+#ifndef FIELD_ELEMENTS_PER_BLOB
+#define FIELD_ELEMENTS_PER_BLOB 4096
+#endif
+
#include "blst.h"
#include "c_kzg_4844.h"
#include <iostream>
--
2.40.1

17 changes: 15 additions & 2 deletions mcl/kzg/nodejs.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
From 9edece17f27548729027f255712cbd2d233ca3c8 Mon Sep 17 00:00:00 2001
From 344b90e309d605d454cbb962da0531bcb062b11a Mon Sep 17 00:00:00 2001
From: belijzajac <[email protected]>
Date: Sat, 17 Jun 2023 19:16:04 +0300
Subject: [PATCH] Update linking

---
bindings/node.js/Makefile | 1 -
bindings/node.js/binding.gyp | 37 +++++-------------------------------
2 files changed, 5 insertions(+), 33 deletions(-)
bindings/node.js/src/kzg.cxx | 4 ++++
3 files changed, 9 insertions(+), 33 deletions(-)

diff --git a/bindings/node.js/Makefile b/bindings/node.js/Makefile
index fdf1618..34e54df 100644
Expand Down Expand Up @@ -74,6 +75,18 @@ index 69be3ef..349ac0b 100644
}
]
}
diff --git a/bindings/node.js/src/kzg.cxx b/bindings/node.js/src/kzg.cxx
index 871aa90..f89b1e3 100644
--- a/bindings/node.js/src/kzg.cxx
+++ b/bindings/node.js/src/kzg.cxx
@@ -1,3 +1,7 @@
+#ifndef FIELD_ELEMENTS_PER_BLOB
+#define FIELD_ELEMENTS_PER_BLOB 4096
+#endif
+
#include "blst.h"
#include "c_kzg_4844.h"
#include <iostream>
--
2.40.1

0 comments on commit 33225b0

Please sign in to comment.