Skip to content

Commit 355f4b0

Browse files
authored
Merge pull request bnb-chain#3232 from zsfelfoldi/light-topic3
2 parents 8b1df1a + bbb5e5d commit 355f4b0

112 files changed

Lines changed: 16197 additions & 278 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.mailmap‎

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Taylor Gerring <taylor.gerring@gmail.com> <taylor.gerring@ethereum.org>
1717
Bas van Kervel <bas@ethdev.com>
1818
Bas van Kervel <bas@ethdev.com> <basvankervel@ziggo.nl>
1919
Bas van Kervel <bas@ethdev.com> <basvankervel@gmail.com>
20+
Bas van Kervel <bas@ethdev.com> <bas-vk@users.noreply.github.com>
2021

2122
Sven Ehlert <sven@ethdev.com>
2223

@@ -62,4 +63,30 @@ Joseph Chow <ethereum@outlook.com> ethers <TODO>
6263

6364
Enrique Fynn <enriquefynn@gmail.com>
6465

65-
Vincent G <caktux@gmail.com>
66+
Vincent G <caktux@gmail.com>
67+
68+
RJ Catalano <rj@erisindustries.com>
69+
70+
Nchinda Nchinda <nchinda2@gmail.com>
71+
72+
Aron Fischer <homotopycolimit@users.noreply.github.com>
73+
74+
Vlad Gluhovsky <gluk256@users.noreply.github.com>
75+
76+
Ville Sundell <github@solarius.fi>
77+
78+
Elliot Shepherd <elliot@identitii.com>
79+
80+
Yohann Léon <sybiload@gmail.com>
81+
82+
Gregg Dourgarian <greggd@tempworks.com>
83+
84+
Casey Detrio <cdetrio@gmail.com>
85+
86+
Jens Agerberg <github@agerberg.me>
87+
88+
Nick Johnson <arachnid@notdot.net>
89+
90+
Henning Diedrich <hd@eonblast.com>
91+
Henning Diedrich <hd@eonblast.com> Drake Burroughs <wildfyre@hotmail.com>
92+

‎AUTHORS‎

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,63 @@
11
# This is the official list of go-ethereum authors for copyright purposes.
22

3+
Ales Katona <ales@coinbase.com>
34
Alex Leverington <alex@ethdev.com>
45
Alexandre Van de Sande <alex.vandesande@ethdev.com>
6+
Aron Fischer <homotopycolimit@users.noreply.github.com>
57
Bas van Kervel <bas@ethdev.com>
8+
Benjamin Brent <benjamin@benjaminbrent.com>
9+
Casey Detrio <cdetrio@gmail.com>
610
Christoph Jentzsch <jentzsch.software@gmail.com>
711
Daniel A. Nagy <nagy.da@gmail.com>
8-
Drake Burroughs <wildfyre@hotmail.com>
12+
Elliot Shepherd <elliot@identitii.com>
913
Enrique Fynn <enriquefynn@gmail.com>
1014
Ethan Buchman <ethan@coinculture.info>
1115
Fabian Vogelsteller <fabian@frozeman.de>
16+
Fabio Berger <fabioberger1991@gmail.com>
1217
Felix Lange <fjl@twurst.com>
18+
Gregg Dourgarian <greggd@tempworks.com>
1319
Gustav Simonsson <gustav.simonsson@gmail.com>
20+
Hao Bryan Cheng <haobcheng@gmail.com>
21+
Henning Diedrich <hd@eonblast.com>
1422
Isidoro Ghezzi <isidoro.ghezzi@icloud.com>
1523
Jae Kwon <jkwon.work@gmail.com>
1624
Jason Carver <jacarver@linkedin.com>
1725
Jeff R. Allen <jra@nella.org>
1826
Jeffrey Wilcke <jeffrey@ethereum.org>
27+
Jens Agerberg <github@agerberg.me>
28+
Jonathan Brown <jbrown@bluedroplet.com>
1929
Joseph Chow <ethereum@outlook.com>
30+
Justin Clark-Casey <justincc@justincc.org>
31+
Kenji Siu <kenji@isuntv.com>
2032
Kobi Gurkan <kobigurk@gmail.com>
2133
Lefteris Karapetsas <lefteris@refu.co>
2234
Leif Jurvetson <leijurv@gmail.com>
2335
Maran Hidskes <maran.hidskes@gmail.com>
2436
Marek Kotewicz <marek.kotewicz@gmail.com>
37+
Martin Holst Swende <martin@swende.se>
38+
Matthew Di Ferrante <mattdf@users.noreply.github.com>
2539
Matthew Wampler-Doty <matthew.wampler.doty@gmail.com>
40+
Nchinda Nchinda <nchinda2@gmail.com>
2641
Nick Dodson <silentcicero@outlook.com>
42+
Nick Johnson <arachnid@notdot.net>
43+
Paulo L F Casaretto <pcasaretto@gmail.com>
2744
Peter Pratscher <pratscher@gmail.com>
2845
Péter Szilágyi <peterke@gmail.com>
46+
RJ Catalano <rj@erisindustries.com>
2947
Ramesh Nair <ram@hiddentao.com>
3048
Ricardo Catalinas Jiménez <r@untroubled.be>
3149
Rémy Roy <remyroy@remyroy.com>
50+
Stein Dekker <dekker.stein@gmail.com>
51+
Steven Roose <stevenroose@gmail.com>
3252
Taylor Gerring <taylor.gerring@gmail.com>
53+
Thomas Bocek <tom@tomp2p.net>
54+
Tosh Camille <tochecamille@gmail.com>
3355
Viktor Trón <viktor.tron@gmail.com>
56+
Ville Sundell <github@solarius.fi>
3457
Vincent G <caktux@gmail.com>
3558
Vitalik Buterin <v@buterin.com>
59+
Vlad Gluhovsky <gluk256@users.noreply.github.com>
60+
Yohann Léon <sybiload@gmail.com>
61+
Yoichi Hirai <i@yoichihirai.com>
3662
Zsolt Felföldi <zsfelfoldi@gmail.com>
63+
ΞTHΞЯSPHΞЯΞ <{viktor.tron,nagydani,zsfelfoldi}@gmail.com>

‎accounts/abi/bind/backend.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The go-ethereum Authors
1+
// Copyright 2015 The go-ethereum Authors
22
// This file is part of the go-ethereum library.
33
//
44
// The go-ethereum library is free software: you can redistribute it and/or modify

‎accounts/abi/bind/backends/simulated.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The go-ethereum Authors
1+
// Copyright 2015 The go-ethereum Authors
22
// This file is part of the go-ethereum library.
33
//
44
// The go-ethereum library is free software: you can redistribute it and/or modify

‎accounts/abi/bind/base.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 The go-ethereum Authors
1+
// Copyright 2015 The go-ethereum Authors
22
// This file is part of the go-ethereum library.
33
//
44
// The go-ethereum library is free software: you can redistribute it and/or modify

‎build/update-license.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ var (
5353
"contracts/chequebook/contract/",
5454
"contracts/ens/contract/",
5555
"contracts/release/contract.go",
56+
"p2p/discv5/nodeevent_string.go",
5657
}
5758

5859
// paths with this prefix are licensed as GPL. all other files are LGPL.

‎cmd/bootnode/main.go‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import (
2727
"github.com/ethereum/go-ethereum/crypto"
2828
"github.com/ethereum/go-ethereum/logger/glog"
2929
"github.com/ethereum/go-ethereum/p2p/discover"
30+
"github.com/ethereum/go-ethereum/p2p/discv5"
3031
"github.com/ethereum/go-ethereum/p2p/nat"
3132
)
3233

@@ -38,6 +39,7 @@ func main() {
3839
nodeKeyFile = flag.String("nodekey", "", "private key filename")
3940
nodeKeyHex = flag.String("nodekeyhex", "", "private key as hex (for testing)")
4041
natdesc = flag.String("nat", "none", "port mapping mechanism (any|none|upnp|pmp|extip:<IP>)")
42+
runv5 = flag.Bool("v5", false, "run a v5 topic discovery bootnode")
4143

4244
nodeKey *ecdsa.PrivateKey
4345
err error
@@ -79,8 +81,15 @@ func main() {
7981
os.Exit(0)
8082
}
8183

82-
if _, err := discover.ListenUDP(nodeKey, *listenAddr, natm, ""); err != nil {
83-
utils.Fatalf("%v", err)
84+
if *runv5 {
85+
if _, err := discv5.ListenUDP(nodeKey, *listenAddr, natm, ""); err != nil {
86+
utils.Fatalf("%v", err)
87+
}
88+
} else {
89+
if _, err := discover.ListenUDP(nodeKey, *listenAddr, natm, ""); err != nil {
90+
utils.Fatalf("%v", err)
91+
}
8492
}
93+
8594
select {}
8695
}

‎cmd/geth/chaincmd.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func exportChain(ctx *cli.Context) error {
180180

181181
func removeDB(ctx *cli.Context) error {
182182
stack := utils.MakeNode(ctx, clientIdentifier, gitCommit)
183-
dbdir := stack.ResolvePath("chaindata")
183+
dbdir := stack.ResolvePath(utils.ChainDbName(ctx))
184184
if !common.FileExist(dbdir) {
185185
fmt.Println(dbdir, "does not exist")
186186
return nil

‎cmd/geth/main.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ participating.
118118
utils.KeyStoreDirFlag,
119119
utils.OlympicFlag,
120120
utils.FastSyncFlag,
121+
utils.LightModeFlag,
122+
utils.LightServFlag,
123+
utils.LightPeersFlag,
121124
utils.LightKDFFlag,
122-
utils.CacheFlag,
123125
utils.TrieCacheGenFlag,
124126
utils.JSpathFlag,
125127
utils.ListenPortFlag,
@@ -136,6 +138,7 @@ participating.
136138
utils.NATFlag,
137139
utils.NatspecEnabledFlag,
138140
utils.NoDiscoverFlag,
141+
utils.DiscoveryV5Flag,
139142
utils.NodeKeyFileFlag,
140143
utils.NodeKeyHexFlag,
141144
utils.RPCEnabledFlag,

‎cmd/geth/usage.go‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ var AppHelpFlagGroups = []flagGroup{
7272
utils.DevModeFlag,
7373
utils.IdentityFlag,
7474
utils.FastSyncFlag,
75+
utils.LightModeFlag,
76+
utils.LightServFlag,
77+
utils.LightPeersFlag,
7578
utils.LightKDFFlag,
7679
},
7780
},
@@ -119,6 +122,7 @@ var AppHelpFlagGroups = []flagGroup{
119122
utils.MaxPendingPeersFlag,
120123
utils.NATFlag,
121124
utils.NoDiscoverFlag,
125+
utils.DiscoveryV5Flag,
122126
utils.NodeKeyFileFlag,
123127
utils.NodeKeyHexFlag,
124128
},

0 commit comments

Comments
 (0)