[2/5] light client http api (#12984)

Co-authored-by: Lizhang <lizhang@polymerlabs.org>
This commit is contained in:
Nicolás Pernas Maradei
2023-11-21 13:26:39 +01:00
committed by GitHub
parent d035be29cd
commit 10ccf1840f
18 changed files with 1958 additions and 21 deletions

View File

@@ -11,6 +11,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/prysmaticlabs/prysm/v4/config/params"
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
"github.com/prysmaticlabs/prysm/v4/encoding/bytesutil"
@@ -171,7 +172,7 @@ func TestGetSpec(t *testing.T) {
data, ok := resp.Data.(map[string]interface{})
require.Equal(t, true, ok)
assert.Equal(t, 112, len(data))
assert.Equal(t, 113, len(data))
for k, v := range data {
switch k {
case "CONFIG_NAME":
@@ -414,6 +415,8 @@ func TestGetSpec(t *testing.T) {
assert.Equal(t, "160", v)
case "MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT":
assert.Equal(t, "8", v)
case "MAX_REQUEST_LIGHT_CLIENT_UPDATES":
assert.Equal(t, "128", v)
case "SAFE_SLOTS_TO_IMPORT_OPTIMISTICALLY":
default:
t.Errorf("Incorrect key: %s", k)