Skip to content

Commit

Permalink
rm more Snap sync code (#3047)
Browse files Browse the repository at this point in the history
* rm more Snap sync code

* clean up snap1
  • Loading branch information
tersec authored Feb 7, 2025
1 parent 796c2f7 commit daebbfa
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 469 deletions.
2 changes: 1 addition & 1 deletion hive_integration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a short manual to help you quickly setup and run
Hive. For more detailed information please read the
[hive documentation](https://github.com/ethereum/hive/blob/master/docs/overview.md).

## Prerequisities
## Prerequisites

- A Linux machine. Trust me, it does not work on Windows or MacOS.
- Or Linux inside a VM (e.g. VirtualBox) on Windows or MacOS.
Expand Down
5 changes: 2 additions & 3 deletions nimbus/config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -495,13 +495,12 @@ type
name: "engine-api-ws" .}: bool

allowedOrigins* {.
desc: "Comma separated list of domains from which to accept cross origin requests"
desc: "Comma-separated list of domains from which to accept cross origin requests"
defaultValue: @[]
defaultValueDesc: "*"
name: "allowed-origins" .}: seq[string]

# github.com/ethereum/execution-apis/
# /blob/v1.0.0-alpha.8/src/engine/authentication.md#key-distribution
# https://github.com/ethereum/execution-apis/blob/v1.0.0-beta.4/src/engine/authentication.md#key-distribution
jwtSecret* {.
desc: "Path to a file containing a 32 byte hex-encoded shared secret" &
" needed for websocket authentication. By default, the secret key" &
Expand Down
2 changes: 1 addition & 1 deletion nimbus/db/aristo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ database, the above architecture mutates to

When looked at descriptor API there are no changes when accessing data via
*db1*, *db2*, or *db3*. In a different, more algebraic notation, the above
tansformation is written as
transformation is written as

| tx1, ø | (8)
| tx2, ø | PBE
Expand Down
29 changes: 3 additions & 26 deletions nimbus/sync/protocol.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Nimbus
# Copyright (c) 2021-2024 Status Research & Development GmbH
# Copyright (c) 2021-2025 Status Research & Development GmbH
# Licensed and distributed under either of
# * MIT license (license terms in the root directory or at
# https://opensource.org/licenses/MIT).
Expand All @@ -11,43 +11,20 @@
## Provision of `eth` and `snap` protocol version parameters
##
## `Eth` related parameters:
## `ethVersions`: seq[int] -- constant list of all available versions
## `eth` -- type symbol of default version
## `proto_eth` -- export of default version directives
##
## `Snap` related parameters:
## `snap` -- type symbol of default version
## `proto_snap` -- export of default version directives
## ..aliases.. -- type names, syntactic sugar (see below)
##

{.push raises: [].}

import
./protocol/eth68 as proto_eth

type eth* = eth68

# ---------------

import
./protocol/snap1 as proto_snap

export
proto_eth,
proto_snap

type
snap* = snap1

SnapAccountRange* = accountRangeObj
## Syntactic sugar, type defined in `snap1`

SnapStorageRanges* = storageRangesObj
## Ditto

SnapByteCodes* = byteCodesObj
## Ditto

SnapTrieNodes* = trieNodesObj
## Ditto

# End
225 changes: 0 additions & 225 deletions nimbus/sync/protocol/snap/snap_types.nim

This file was deleted.

Loading

0 comments on commit daebbfa

Please sign in to comment.