marcello33
f3ffacf2d7
dev: fix: most of wsl lint issues
2023-06-15 15:48:26 +02:00
marcello33
162af07d38
dev: chg: regression changes for bor after merge
2023-06-12 16:46:03 +02:00
marcello33
a043ec6d62
dev: add: merge upstream
2023-06-09 14:34:30 +02:00
lightclient
2c5798464e
common: delete MakeName ( #27023 )
...
common,p2p: remove unused function MakeName
2023-04-03 03:51:31 -04:00
marcello33
50a778207e
dev: add: pos-944: snyk and govuln integration ( #578 )
...
* dev: add: pos-944 security ci and readme
* dev: add: pos-944 remove linters as this is included already in build ci
* dev: chg: pos-947 dependencies upgrade to solve snyk security issues
* dev: chg: update security-ci
* dev: chg: remove linter to allow replacements for security issues
* dev: add: pos-944 verify path when updating metrics from config
* dev: add: pos-944 fix linter
* dev: add: pos-944 add .snyk policy file / fix snyk code vulnerabilities
* dev: fix: pos-944 import common package / gitignore snyk dccache file
* dev: fix: pos-944 verify canonical path for crashers
* dev: fix: pos-944 linter
* dev: add: pos-976 add govuln check
* dev: add: pos-976 test upload with permissions
* dev: add: pos-976 remove duplicated upload
* dev: add: pos-976 report upload
* dev: add: pos-976 remove upload
* dev: fix: pos-944 fix govuln action
* dev: fix: pos-944 move govulncheck to security-ci
* dev: fix: pos-944 bump golvun action and golang versions
* dev: fix: pos-944 remove persmissions and fix conflicts
* dev: chg: restore err msg
* dev: chg: remove duplicated function
* dev: chg: sort import
* dev: chg: fix linter
* dev: add: use common VerifyCrasher function to avoid duplications / replace deprecated ioutils.ReadFile
* dev: fix: typo
2022-12-06 10:53:55 +01:00
kiel barry
84f8c0cc1f
common: improve documentation comments ( #16701 )
...
This commit adds many comments and removes unused code.
It also removes the EmptyHash function, which had some uses
but was silly.
2018-05-29 12:42:21 +02:00
Felix Lange
b42a5b118f
common, node: move datadir defaults into package node
2016-09-16 15:24:31 +02:00
Felix Lange
6fdd0893c3
all: fix go vet warnings
2016-04-15 11:17:27 +02:00
Péter Szilágyi
a13bc9d7a1
cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspect
2016-02-05 13:45:36 +02:00
Péter Szilágyi
188ab928c3
cmd, common, node, rpc: move IPC into the node itself
2016-02-04 11:23:15 +02:00
Lefteris Karapetsas
e2fdd33541
common: Fix HomeDir detection
...
I am working on porting geth to [Ubuntu Core](https://developer.ubuntu.com/en/snappy/https://developer.ubuntu.com/en/snappy/ ). I am testing geth on a Raspberry PI and for Ubuntu Core the $HOME directory is unique for each application. See [here](https://developer.ubuntu.com/en/snappy/guides/filesystem-layout ) for more information of their filesystem layout.
For some reason in Go `usr.HomeDir` returns a different value than `$HOME` in Ubuntu Core.
Adding this at the end of `HomeDir()`
```go
fmt.Printf("at HomeDir, user.HomeDir = %s and $HOME is %s\n", usr.HomeDir, os.Getenv("HOME"))
```
gives the following output
```
at HomeDir, user.HomeDir = /home/ubuntu and $HOME is /home/ubuntu/apps/geth.sideload/IJcODREBYbHO
```
With this commit, I propose giving precedence to the `$HOME` environment variable as is also suggested by the [homedir](https://github.com/mitchellh/go-homedir/blob/master/homedir.go ) project.
2016-01-08 13:36:37 +01:00
zelig
4d005a2c1d
rpc api: eth_getNatSpec
...
* xeth, rpc: implement eth_getNatSpec for tx confirmations
* rename silly docserver -> httpclient
* eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot
* cmd: introduce separate CLI flag for DocRoot (defaults to homedir)
* common/path: delete unused assetpath func, separate HomeDir func
2015-10-26 22:24:09 +01:00
Péter Szilágyi
74578ab22b
common: fix #1818 , secondary datadir paths to fall back to
2015-10-01 12:26:19 +03:00
Felix Lange
78b101e15d
common: remove windows path functions
...
They were unused and their tests failed on Windows.
2015-08-06 16:43:43 +02:00
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a .
2015-07-23 18:35:11 +02:00
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
2015-07-22 18:51:45 +02:00
Felix Lange
ea54283b30
all: update license information
2015-07-07 14:12:44 +02:00
Bas van Kervel
359e6414e5
fixed windows ipc path issue
2015-06-12 09:32:37 +02:00
Bas van Kervel
2a0d888326
added API/IPC commandline flags
2015-06-11 14:01:39 +02:00
Bas van Kervel
b79dd188d9
replaced several path.* with filepath.* which is platform independent
2015-05-12 14:24:11 +02:00
Taylor Gerring
f8cdff9a5d
Remove path separator literals
2015-04-29 00:30:25 -05:00
zelig
4ec38e3932
common: remove WriteFile and ReadAllFile (use ioutil instead)
2015-03-26 19:00:18 +00:00
Taylor Gerring
2477d10aa0
Move MakeName to path
2015-03-22 13:46:21 +01:00
Taylor Gerring
c0741edc34
Move OS-specific funcs to path.go
2015-03-22 13:44:17 +01:00
obscuren
b523441361
Moved ethutil => common
2015-03-16 11:27:38 +01:00