Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Thank you for contributing to Gno! This guide will help you get started.

- **[Documentation](https://docs.gno.land)** - comprehensive documentation for Gno
- **[Go Package Docs](https://gnolang.github.io/gno/github.com/gnolang/gno.html)** - API reference documentation
- **[Awesome Gno](https://github.com/gnoverse/awesome-gno** - curated list of Gno resources
- **[Awesome Gno](https://github.com/gnoverse/awesome-gno)** - curated list of Gno resources
- **[Discord](https://discord.gg/YFtMjWwUN7)** - join our community for discussions and support

## Getting Started
Expand Down
1 change: 0 additions & 1 deletion examples_ignored/r/demo/nft/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ I read over EIP-721 which appears to be the de-facto NFT standard on Ethereum. T

- [EIP-721](https://eips.ethereum.org/EIPS/eip-721)
- [gno.land/r/demo/nft/nft.go](https://gno.land/r/demo/nft/nft.go)
- [zrealm_nft3.go test](https://github.com/gnolang/gno/blob/master/tests/files2/zrealm_nft3.gno)

In short, this demonstrates how to implement Ethereum contract interfaces in gno.land; by using only standard Go language features.

Expand Down
2 changes: 1 addition & 1 deletion gno.land/cmd/gnokey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$> git clone git@github.com:gnolang/gno.git
$> cd ./gno
$> make install_gnokey
$> make install.gnokey

Also, see the [quickstart guide](../../../docs/users/interact-with-gnokey.md).

Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Or

> git clone git@github.com:gnolang/gno.git
> cd ./gno
> make install_gno
> make install.gno

## Getting started

Expand Down
2 changes: 1 addition & 1 deletion misc/loop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ This script is doing:

- Setup the current portal-loop in read only mode
- Pull the latest version of [ghcr.io/gnolang/gno](https://ghcr.io/gnolang/gno)
- Backup the txs using [contribs/tx-archive](https://github.com/gnolang/contribs/tx-archive)
- Backup the txs using [contribs/tx-archive](https://github.com/gnolang/gno/tree/master/contribs/tx-archive)
- Start a new docker container with the backups files
- Changing the proxy (traefik) to redirect to the new portal loop
- Unlock read only mode
Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/amino/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Amino

http://github.com/gnolang/gno/tm2/pkg/amino
https://github.com/gnolang/gno/tree/master/tm2/pkg/amino

NOTE: This project used to be gnolang/gno/pkgs/amino, derived from
tendermint/go-amino.
Expand Down Expand Up @@ -92,7 +92,7 @@ migration scripts. Feedback welcome in the issues section.

### Floating points
Floating point number types are discouraged as [they are generally
non-deterministic](http://gafferongames.com/networking-for-game-programmers/floating-point-determinism/).
non-deterministic](https://gafferongames.com/post/floating_point_determinism/).
If you need to use them, use the field tag `amino:"unsafe"`.

### Enums
Expand Down
6 changes: 0 additions & 6 deletions tm2/pkg/bft/abci/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,10 @@ Previously, the ABCI was referred to as TMSP.

The community has provided a number of additional implementations, see the [Tendermint Ecosystem](https://tendermint.com/ecosystem)


## Installation & Usage

To get up and running quickly, see the [getting started guide](../docs/app-dev/getting-started.md) along with the [abci-cli documentation](../docs/app-dev/abci-cli.md) which will go through the examples found in the [examples](./example/) directory.

## Specification

A detailed description of the ABCI methods and message types is contained in:

- [The main spec](../docs/spec/abci/abci.md)
- [A protobuf file](./types/types.proto)
- [A Go interface](./types/application.go)

Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/blockchain/pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (p testPeer) simulateInput(input inputData) {
block := &types.Block{Header: types.Header{Height: input.request.Height}}
input.pool.AddBlock(input.request.PeerID, block, 123)
// TODO: uncommenting this creates a race which is detected by: https://github.com/golang/go/blob/2bd767b1022dd3254bcec469f0ee164024726486/src/testing/testing.go#L854-L856
// see: https://github.com/tendermint/classic/issues/3390#issue-418379890
// see: https://github.com/tendermint/tendermint/issues/3390#issue-418379890
// input.t.Logf("Added block from peer %v (height: %v)", input.request.PeerID, input.request.Height)
}

Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/consensus/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
See the [consensus spec](https://github.com/tendermint/classic/tree/master/docs/spec/consensus) and the [reactor consensus spec](https://github.com/tendermint/classic/tree/master/docs/spec/reactors/consensus) for more information.
See the [consensus spec](https://github.com/tendermint/tendermint/tree/master/docs/spec/consensus) and the [reactor consensus spec](https://github.com/tendermint/tendermint/tree/master/docs/spec/reactors/consensus) for more information.
8 changes: 4 additions & 4 deletions tm2/pkg/bft/consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ func (cs *ConsensusState) handleMsg(mi msgInfo) {
// We probably don't want to stop the peer here. The vote does not
// necessarily comes from a malicious peer but can be just broadcasted by
// a typical peer.
// https://github.com/tendermint/classic/issues/1281
// https://github.com/tendermint/tendermint/issues/1281
// }

// NOTE: the vote is broadcast to peers by the reactor listening
Expand All @@ -721,7 +721,7 @@ func (cs *ConsensusState) handleMsg(mi msgInfo) {

if err != nil { //nolint:staticcheck
// Causes TestReactorValidatorSetChanges to timeout
// https://github.com/tendermint/classic/issues/3406
// https://github.com/tendermint/tendermint/issues/3406
// cs.Logger.Error("Error with msg", "height", cs.Height, "round", cs.Round,
// "peer", peerID, "err", err, "msg", msg)
}
Expand Down Expand Up @@ -1544,7 +1544,7 @@ func (cs *ConsensusState) tryAddVote(vote *types.Vote, peerID p2pTypes.ID) (bool
// Either
// 1) bad peer OR
// 2) not a bad peer? this can also err sometimes with "Unexpected step" OR
// 3) tmkms use with multiple validators connecting to a single tmkms instance (https://github.com/tendermint/classic/issues/3839).
// 3) tmkms use with multiple validators connecting to a single tmkms instance (https://github.com/tendermint/tendermint/issues/3839).
cs.Logger.Info("Error attempting to add vote", "err", err)
return added, ErrAddingVote
}
Expand Down Expand Up @@ -1734,7 +1734,7 @@ func (cs *ConsensusState) voteTime() time.Time {
// even if cs.LockedBlock != nil. See https://github.com/tendermint/spec.
timeIota := time.Duration(cs.state.ConsensusParams.Block.TimeIotaMS) * time.Millisecond
if cs.LockedBlock != nil {
// See the BFT time spec https://tendermint.com/docs/spec/consensus/bft-time.html
// See the BFT time spec https://docs.cometbft.com/v0.38/spec/consensus/bft-time
minVoteTime = cs.LockedBlock.Time.Add(timeIota)
} else if cs.ProposalBlock != nil {
minVoteTime = cs.ProposalBlock.Time.Add(timeIota)
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/mempool/clist_mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func (mem *CListMempool) Update(
// 101 -> 102
// Mempool after:
// 100
// https://github.com/tendermint/classic/issues/3322.
// https://github.com/tendermint/tendermint/issues/3322.
if e, ok := mem.txsMap.Load(txKey(tx)); ok {
mem.removeTx(tx, e.(*clist.CElement), false)
}
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ func (n *Node) startRPC() (listeners []net.Listener, err error) {
config.MaxOpenConnections = n.config.RPC.MaxOpenConnections
// If necessary adjust global WriteTimeout to ensure it's greater than
// TimeoutBroadcastTxCommit.
// See https://github.com/gnolang/gno/tm2/pkg/bft/issues/3435
// See https://github.com/tendermint/tendermint/issues/3435
if config.WriteTimeout <= n.config.RPC.TimeoutBroadcastTxCommit {
config.WriteTimeout = n.config.RPC.TimeoutBroadcastTxCommit + 1*time.Second
}
Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/bft/rpc/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ type RPCConfig struct {
// How long to wait for a tx to be committed during /broadcast_tx_commit
// WARNING: Using a value larger than 10s will result in increasing the
// global HTTP write timeout, which applies to all connections and endpoints.
// See https://github.com/gnolang/gno/tm2/pkg/bft/issues/3435
TimeoutBroadcastTxCommit time.Duration `json:"timeout_broadcast_tx_commit" toml:"timeout_broadcast_tx_commit" comment:"How long to wait for a tx to be committed during /broadcast_tx_commit.\n WARNING: Using a value larger than 10s will result in increasing the\n global HTTP write timeout, which applies to all connections and endpoints.\n See https://github.com/tendermint/classic/issues/3435"`
// See https://github.com/tendermint/tendermint/issues/3435
TimeoutBroadcastTxCommit time.Duration `json:"timeout_broadcast_tx_commit" toml:"timeout_broadcast_tx_commit" comment:"How long to wait for a tx to be committed during /broadcast_tx_commit.\n WARNING: Using a value larger than 10s will result in increasing the\n global HTTP write timeout, which applies to all connections and endpoints.\n See https://github.com/tendermint/tendermint/issues/3435"`

// Maximum size of request body, in bytes
MaxBodyBytes int64 `json:"max_body_bytes" toml:"max_body_bytes" comment:"Maximum size of request body, in bytes"`
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/rpc/core/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Tendermint supports the following RPC protocols:
* JSONRPC over websockets

Tendermint RPC is built using our own RPC library which contains its own set of documentation and tests.
See it here: https://github.com/gnolang/gno/tm2/pkg/bft/tree/master/rpc/lib
See it here: https://github.com/gnolang/gno/tree/master/tm2/pkg/bft/rpc/lib

## Configuration

Expand Down
16 changes: 8 additions & 8 deletions tm2/pkg/bft/rpc/core/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ import (
//
// If you want to be sure that the transaction is included in a block, you can
// subscribe for the result using JSONRPC via a websocket. See
// https://tendermint.com/docs/app-dev/subscribing-to-events-via-websocket.html
// https://docs.tendermint.com/v0.34/tendermint-core/subscription.html
// If you haven't received anything after a couple of blocks, resend it. If the
// same happens again, send it to some other node. A few reasons why it could
// happen:
//
// 1. malicious node can drop or pretend it had committed your tx
// 2. malicious proposer (not necessary the one you're communicating with) can
// drop transactions, which might become valid in the future
// (https://github.com/gnolang/gno/tm2/pkg/bft/issues/3322)
// (https://github.com/tendermint/tendermint/issues/3322)
// 3. node can be offline
//
// Please refer to
// https://tendermint.com/docs/tendermint-core/using-tendermint.html#formatting
// https://docs.tendermint.com/v0.34/tendermint-core/using-tendermint.html#formatting
// for formatting/encoding rules.
//
// ```shell
Expand Down Expand Up @@ -92,18 +92,18 @@ func BroadcastTxAsync(ctx *rpctypes.Context, tx types.Tx) (*ctypes.ResultBroadca
//
// If you want to be sure that the transaction is included in a block, you can
// subscribe for the result using JSONRPC via a websocket. See
// https://tendermint.com/docs/app-dev/subscribing-to-events-via-websocket.html
// https://docs.tendermint.com/v0.34/tendermint-core/subscription.html
// If you haven't received anything after a couple of blocks, resend it. If the
// same happens again, send it to some other node. A few reasons why it could
// happen:
//
// 1. malicious node can drop or pretend it had committed your tx
// 2. malicious proposer (not necessary the one you're communicating with) can
// drop transactions, which might become valid in the future
// (https://github.com/gnolang/gno/tm2/pkg/bft/issues/3322)
// (https://github.com/tendermint/tendermint/issues/3322)
//
// Please refer to
// https://tendermint.com/docs/tendermint-core/using-tendermint.html#formatting
// https://docs.tendermint.com/v0.34/tendermint-core/using-tendermint.html#formatting
// for formatting/encoding rules.
//
// ```shell
Expand Down Expand Up @@ -170,7 +170,7 @@ func BroadcastTxSync(ctx *rpctypes.Context, tx types.Tx) (*ctypes.ResultBroadcas
// IMPORTANT: use only for testing and development. In production, use
// BroadcastTxSync or BroadcastTxAsync. You can subscribe for the transaction
// result using JSONRPC via a websocket. See
// https://tendermint.com/docs/app-dev/subscribing-to-events-via-websocket.html
// https://docs.tendermint.com/v0.34/tendermint-core/subscription.html
//
// CONTRACT: only returns error if mempool.CheckTx() errs or if we timeout
// waiting for tx to commit.
Expand All @@ -179,7 +179,7 @@ func BroadcastTxSync(ctx *rpctypes.Context, tx types.Tx) (*ctypes.ResultBroadcas
// will contain a non-OK ABCI code.
//
// Please refer to
// https://tendermint.com/docs/tendermint-core/using-tendermint.html#formatting
// https://docs.tendermint.com/v0.34/tendermint-core/using-tendermint.html#formatting
// for formatting/encoding rules.
//
// ```shell
Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/bft/rpc/lib/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@
//
// # Examples
//
// - [Tendermint](https://github.com/gnolang/gno/tm2/pkg/bft/blob/master/rpc/core/routes.go)
// - [tm-monitor](https://github.com/gnolang/gno/tm2/pkg/bft/blob/master/tools/tm-monitor/rpc.go)
// - [Tendermint](https://github.com/gnolang/gno/blob/master/tm2/pkg/bft/rpc/core/routes.go)
// - [tm-monitor](https://github.com/tendermint/tools/blob/master/tm-monitor/rpc.go)
package rpc
2 changes: 1 addition & 1 deletion tm2/pkg/bft/rpc/lib/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ func (wsc *wsConnection) writeRoutine() {
}

// All writes to the websocket must (re)set the write deadline.
// If some writes don't set it while others do, they may timeout incorrectly (https://github.com/gnolang/gno/tm2/pkg/bft/issues/553)
// If some writes don't set it while others do, they may timeout incorrectly (https://github.com/tendermint/tendermint/issues/553)
func (wsc *wsConnection) writeMessageWithDeadline(msgType int, msg []byte) error {
if err := wsc.baseConn.SetWriteDeadline(time.Now().Add(wsc.writeWait)); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/rpc/lib/server/handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func statusOK(code int) bool { return code >= 200 && code <= 299 }

// Ensure that nefarious/unintended inputs to `params`
// do not crash our RPC handlers.
// See Issue https://github.com/gnolang/gno/tm2/pkg/bft/issues/708.
// See Issue https://github.com/tendermint/tendermint/issues/708.
func TestRPCParams(t *testing.T) {
t.Parallel()

Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/bft/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func testProposerFreq(t *testing.T, caseNum int, valSet *types.ValidatorSet) {
}

// TestProposerPriorityDoesNotGetResetToZero assert that we preserve accum when calling updateState
// see https://github.com/tendermint/classic/issues/2718
// see https://github.com/tendermint/tendermint/issues/2718
func TestProposerPriorityDoesNotGetResetToZero(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -730,7 +730,7 @@ func TestLargeGenesisValidator(t *testing.T) {
// add more validators with same voting power as the 2nd
// let the genesis validator "unbond",
// see how long it takes until the effect wears off and both begin to alternate
// see: https://github.com/tendermint/classic/issues/2960
// see: https://github.com/tendermint/tendermint/issues/2960
firstAddedValPubKey := ed25519.GenPrivKey().PubKey()
firstAddedValVotingPower := int64(10)
firstAddedVal := abci.ValidatorUpdate{PubKey: (firstAddedValPubKey), Power: firstAddedValVotingPower}
Expand Down
4 changes: 2 additions & 2 deletions tm2/pkg/bft/state/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
const (
// persist validators every valSetCheckpointInterval blocks to avoid
// LoadValidators taking too much time.
// https://github.com/tendermint/classic/pull/3438
// https://github.com/tendermint/tendermint/pull/3438
// 100000 results in ~ 100ms to get 100 validators (see BenchmarkLoadValidators)
valSetCheckpointInterval = 100000
)
Expand Down Expand Up @@ -253,7 +253,7 @@ func LoadValidators(db dbm.DB, height int64) (*types.ValidatorSet, error) {
// release and just panic. Old chains might panic otherwise if they
// haven't saved validators at intermediate (%valSetCheckpointInterval)
// height yet.
// https://github.com/tendermint/classic/issues/3543
// https://github.com/tendermint/tendermint/issues/3543
valInfo2 = loadValidatorsInfo(db, valInfo.LastHeightChanged)
lastStoredHeight = valInfo.LastHeightChanged
if valInfo2 == nil || valInfo2.ValidatorSet == nil {
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/state/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestStoreLoadValidators(t *testing.T) {
// 2) LoadValidators loads validators using a checkpoint height

// TODO(melekes): REMOVE in 0.33 release
// https://github.com/tendermint/classic/issues/3543
// https://github.com/tendermint/tendermint/issues/3543
// for releases prior to v0.31.4, it uses last height changed
valInfo := &sm.ValidatorsInfo{
LastHeightChanged: sm.ValSetCheckpointInterval,
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/state/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func VerifyEvidence(stateDB dbm.DB, state State, evidence types.Evidence) error
// NOTE: we will ignore evidence from H if the key was not a validator
// at H, even if it is a validator at some nearby H'
// XXX: this makes lite-client bisection as is unsafe
// See https://github.com/tendermint/classic/issues/3244
// See https://github.com/tendermint/tendermint/issues/3244
ev := evidence
height, addr := ev.Height(), ev.Address()
_, val := valset.GetByAddress(addr)
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/types/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func (h *Header) StringIndented(indent string) string {
// For now, it is identical to a vote,
// but in the future it will contain fewer fields
// to eliminate the redundancy in commits.
// See https://github.com/tendermint/classic/issues/1648.
// See https://github.com/tendermint/tendermint/issues/1648.
type CommitSig Vote

// String returns the underlying Vote.String()
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/types/evidence.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const (
// allowed in the block and their maximum total size (limited to 1/10th
// of the maximum block size).
// TODO: change to a constant, or to a fraction of the validator set size.
// See https://github.com/tendermint/classic/issues/2590
// See https://github.com/tendermint/tendermint/issues/2590
func MaxEvidencePerBlock(blockMaxBytes int64) (int64, int64) {
maxBytes := blockMaxBytes / MaxEvidenceBytesDenominator
maxNum := maxBytes / MaxEvidenceBytes
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/types/results.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

// ABCIResult is the deterministic component of a ResponseDeliverTx.
// TODO: add tags and other fields
// https://github.com/tendermint/classic/issues/1007
// https://github.com/tendermint/tendermint/issues/1007
type ABCIResult struct {
Error abci.Error `json:"error"`
Data []byte `json:"data"`
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/bft/types/time/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func Now() time.Time {

// Canonical returns UTC time with no monotonic component.
// Stripping the monotonic component is for time equality.
// See https://github.com/tendermint/classic/pull/2203#discussion_r215064334
// See https://github.com/tendermint/tendermint/pull/2203#discussion_r215064334
func Canonical(t time.Time) time.Time {
return t.Round(0).UTC()
}
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/crypto/keys/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type Keybase interface {
// CreateAccount creates an account based using the BIP44 path (44'/118'/{account}'/0/{index}
// Encrypt the key to disk using encryptPasswd.
// If an account exists with the same address but a different name, it is replaced by the new name.
// See https://github.com/tendermint/classic/sdk/issues/2095
// See https://github.com/cosmos/cosmos-sdk/issues/2095
CreateAccount(name, mnemonic, bip39Passwd, encryptPasswd string, account uint32, index uint32) (Info, error)

// Like CreateAccount but from general bip44 params.
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/db/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DB

Database abstractions to be used in applications.
These abstractions are not only meant to be used in applications built on [Tendermint](https://github.com/tendermint/classic), but can be used in a variety of applications.
These abstractions are not only meant to be used in applications built on [Tendermint](https://github.com/tendermint/tendermint), but can be used in a variety of applications.
2 changes: 1 addition & 1 deletion tm2/pkg/db/memdb/mem_db.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (db *MemDB) Close() error {
// database, we don't have a destination
// to flush contents to nor do we want
// any data loss on invoking Close()
// See the discussion in https://github.com/tendermint/classic/libs/pull/56
// See the discussion in https://github.com/tendermint/tmlibs/pull/56
return nil
}

Expand Down
Loading
Loading