Browse Source

update go version & other cleanup (#3018)

* update go version & other cleanup

* fix lints

* go one.eleven.four

* keep circle on 1.11.3 for now
pull/3045/head
Zach 6 years ago
committed by Ethan Buchman
parent
commit
2182f6a702
10 changed files with 8 additions and 7341 deletions
  1. +1
    -1
      .circleci/config.yml
  2. +1
    -1
      README.md
  3. +1
    -5
      blockchain/reactor.go
  4. +0
    -4670
      docs/package-lock.json
  5. +0
    -40
      docs/package.json
  6. +0
    -2611
      docs/yarn.lock
  7. +1
    -9
      scripts/install/install_tendermint_arm.sh
  8. +1
    -1
      scripts/install/install_tendermint_bsd.sh
  9. +1
    -1
      scripts/install/install_tendermint_ubuntu.sh
  10. +2
    -2
      types/tx_test.go

+ 1
- 1
.circleci/config.yml View File

@ -3,7 +3,7 @@ version: 2
defaults: &defaults
working_directory: /go/src/github.com/tendermint/tendermint
docker:
- image: circleci/golang:1.10.3
- image: circleci/golang:1.11.3
environment:
GOBIN: /tmp/workspace/bin


+ 1
- 1
README.md View File

@ -49,7 +49,7 @@ For examples of the kinds of bugs we're looking for, see [SECURITY.md](SECURITY.
Requirement|Notes
---|---
Go version | Go1.10 or higher
Go version | Go1.11.4 or higher
## Documentation


+ 1
- 5
blockchain/reactor.go View File

@ -432,11 +432,7 @@ type bcBlockResponseMessage struct {
// ValidateBasic performs basic validation.
func (m *bcBlockResponseMessage) ValidateBasic() error {
if err := m.Block.ValidateBasic(); err != nil {
return err
}
return nil
return m.Block.ValidateBasic()
}
func (m *bcBlockResponseMessage) String() string {


+ 0
- 4670
docs/package-lock.json
File diff suppressed because it is too large
View File


+ 0
- 40
docs/package.json View File

@ -1,40 +0,0 @@
{
"dependencies": {
"prettier": "^1.13.7",
"remark-cli": "^5.0.0",
"remark-lint-no-dead-urls": "^0.3.0",
"remark-lint-write-good": "^1.0.3",
"textlint": "^10.2.1",
"textlint-rule-stop-words": "^1.0.3"
},
"name": "tendermint",
"description": "Tendermint Core Documentation",
"version": "0.0.1",
"main": "README.md",
"devDependencies": {},
"scripts": {
"lint:json": "prettier \"**/*.json\" --write",
"lint:md": "prettier \"**/*.md\" --write && remark . && textlint \"md/**\"",
"lint": "yarn lint:json && yarn lint:md"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tendermint/tendermint.git"
},
"keywords": [
"tendermint",
"blockchain"
],
"author": "Tendermint",
"license": "ISC",
"bugs": {
"url": "https://github.com/tendermint/tendermint/issues"
},
"homepage": "https://tendermint.com/docs/",
"remarkConfig": {
"plugins": [
"remark-lint-no-dead-urls",
"remark-lint-write-good"
]
}
}

+ 0
- 2611
docs/yarn.lock
File diff suppressed because it is too large
View File


+ 1
- 9
scripts/install/install_tendermint_arm.sh View File

@ -1,19 +1,11 @@
#!/usr/bin/env bash
# XXX: this script is intended to be run from
# a fresh Digital Ocean droplet with Ubuntu
# upon its completion, you must either reset
# your terminal or run `source ~/.profile`
# as written, this script will install
# tendermint core from master branch
REPO=github.com/tendermint/tendermint
# change this to a specific release or branch
BRANCH=master
GO_VERSION=1.11.2
GO_VERSION=1.11.4
sudo apt-get update -y


+ 1
- 1
scripts/install/install_tendermint_bsd.sh View File

@ -16,7 +16,7 @@
set BRANCH=master
set REPO=github.com/tendermint/tendermint
set GO_VERSION=1.11.2
set GO_VERSION=1.11.4
sudo pkg update


+ 1
- 1
scripts/install/install_tendermint_ubuntu.sh View File

@ -13,7 +13,7 @@ REPO=github.com/tendermint/tendermint
# change this to a specific release or branch
BRANCH=master
GO_VERSION=1.11.2
GO_VERSION=1.11.4
sudo apt-get update -y
sudo apt-get install -y make


+ 2
- 2
types/tx_test.go View File

@ -103,9 +103,9 @@ func TestComputeTxsOverhead(t *testing.T) {
}{
{Txs{[]byte{6, 6, 6, 6, 6, 6}}, 2},
// one 21 Mb transaction:
{Txs{make([]byte, 22020096, 22020096)}, 5},
{Txs{make([]byte, 22020096)}, 5},
// two 21Mb/2 sized transactions:
{Txs{make([]byte, 11010048, 11010048), make([]byte, 11010048, 11010048)}, 10},
{Txs{make([]byte, 11010048), make([]byte, 11010048)}, 10},
{Txs{[]byte{1, 2, 3}, []byte{1, 2, 3}, []byte{4, 5, 6}}, 6},
{Txs{[]byte{100, 5, 64}, []byte{42, 116, 118}, []byte{6, 6, 6}, []byte{6, 6, 6}}, 8},
}


Loading…
Cancel
Save