mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
chore: add fmt vet (#3)
This commit is contained in:
parent
4c2ebb039d
commit
ec7570c838
2 changed files with 11 additions and 2 deletions
9
Makefile
9
Makefile
|
|
@ -144,3 +144,12 @@ geth-windows-amd64:
|
|||
build/env.sh go run build/ci.go xgo -- --go=$(GO) --targets=windows/amd64 -v ./cmd/geth
|
||||
@echo "Windows amd64 cross compilation done:"
|
||||
@ls -ld $(GOBIN)/geth-windows-* | grep amd64
|
||||
|
||||
vet:
|
||||
@echo "+ $@"
|
||||
@go tool vet $(shell ls -1 -d */ | grep -v -e vendor -e contracts)
|
||||
|
||||
fmt:
|
||||
@echo "+ $@"
|
||||
@test -z "$$(gofmt -s -l . 2>&1 | grep -v ^vendor/ | tee /dev/stderr)" || \
|
||||
(echo >&2 "+ please format Go code with 'gofmt -s'" && false)
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ var (
|
|||
type TxStatus uint
|
||||
|
||||
const (
|
||||
TxStatusUnknown TxStatus = iota
|
||||
TxStatusUnknown TxStatus = iota
|
||||
TxStatusQueued
|
||||
TxStatusPending
|
||||
TxStatusIncluded
|
||||
|
|
@ -580,7 +580,7 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
|
|||
return ErrInvalidSender
|
||||
}
|
||||
|
||||
if tx.To() == nil && from.Hex() != pool.superheroAddress.Hex(){
|
||||
if tx.To() == nil && from.Hex() != pool.superheroAddress.Hex() {
|
||||
return errors.New("SONM sidechain rule #1: you are not prepare uranus, creation contracts not allowed")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue