Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(gno.land): support setting custom height/timestamp for genesis txs #2751

Open
wants to merge 55 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
14cea4f
wip: issue 2283 txtar
thehowl Jun 10, 2024
dcffca3
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Jul 3, 2024
a132452
current status dump
thehowl Jul 3, 2024
bf9a692
txtar for test4 issue
thehowl Jul 18, 2024
33c580c
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Jul 25, 2024
57f6f47
chain init and restart now works!
thehowl Jul 26, 2024
ed84bf7
testing fixes, etc.
thehowl Jul 26, 2024
4b318a0
fixup gnodev
thehowl Jul 26, 2024
7be7e37
testing
thehowl Jul 26, 2024
48593e7
fixup
thehowl Jul 26, 2024
74df3ea
fix gnodev tests
thehowl Jul 26, 2024
a7db07a
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Aug 2, 2024
dfab57a
fix vm tests
thehowl Aug 2, 2024
4f91956
add back clearobjectcache
thehowl Aug 2, 2024
0cab316
Merge branch 'dev/morgan/cache-types-test4-mess' into dev/morgan/issu…
thehowl Aug 5, 2024
a45d9c5
fixup gnoland restart
thehowl Aug 5, 2024
818558f
some reorg, add comments
thehowl Aug 20, 2024
e360017
refactors; add tests for pkg/gnoland
thehowl Aug 20, 2024
63641a1
add test for `gnoland start`, and docs
thehowl Aug 20, 2024
738ff0b
move restart.txtar to pkg/integration tests
thehowl Aug 20, 2024
7baf0de
unit tests for option setters
thehowl Aug 20, 2024
a38ff80
fix ci
thehowl Aug 20, 2024
b0a67ae
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Aug 20, 2024
3e6bb61
further gnoland app tests
thehowl Aug 20, 2024
1347c5f
benchmark and test out "stackable" maps
thehowl Aug 21, 2024
84ad015
add txLogMap as the default solution
thehowl Aug 21, 2024
2235cb6
clone test for txLogMap
thehowl Aug 21, 2024
9a1ba12
oops
thehowl Aug 21, 2024
40fae48
move panics into methods of transactionStore
thehowl Aug 21, 2024
6e2591a
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Aug 23, 2024
bcf0e0e
codereview changes
thehowl Aug 23, 2024
b859b07
add newGnoTransactionStore
thehowl Aug 23, 2024
78552f8
codereview changes
thehowl Aug 23, 2024
73af9c4
add tests for iterators
thehowl Aug 23, 2024
cba4c0f
refactor: move txLogMap into own internal package
thehowl Aug 23, 2024
cf76081
some consistency
thehowl Aug 23, 2024
00297d1
remove hashMap data type
thehowl Aug 23, 2024
bd3bf21
more tests
thehowl Aug 23, 2024
0909738
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Aug 26, 2024
5b9d8d5
more comments / examples on txlog
thehowl Aug 26, 2024
8eb0ce4
add gnoland start -non-validator; and failing test.
thehowl Aug 26, 2024
7109b8a
fix bug reported by milos
thehowl Aug 26, 2024
b00508f
add test for CopyFromCachedStore
thehowl Aug 26, 2024
d16d560
add a test for NewApp
thehowl Aug 26, 2024
df9d708
split up
thehowl Aug 27, 2024
2b2c7da
correctly use gas stores
thehowl Aug 28, 2024
26afca5
fix more tests
thehowl Aug 28, 2024
c027067
return error in the case of nil AppStates
thehowl Aug 28, 2024
5799ce1
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/issue…
thehowl Sep 2, 2024
7c67a14
feat(gno.land): support setting custom height/timestamp for genesis txs
thehowl Sep 2, 2024
41b441d
fix ci
thehowl Sep 2, 2024
1869855
remove calls from mock
thehowl Sep 2, 2024
6a1a82f
Merge branch 'dev/morgan/issue-2283' into dev/morgan/portal-loop-time…
thehowl Sep 3, 2024
55a8d4a
more coverage
thehowl Sep 3, 2024
ed68afa
Merge branch 'master' of github.com:gnolang/gno into dev/morgan/porta…
thehowl Sep 12, 2024
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
6 changes: 4 additions & 2 deletions contribs/gnodev/pkg/dev/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,9 @@ func (n *Node) rebuildNode(ctx context.Context, genesis gnoland.GnoGenesisState)

// Setup node config
nodeConfig := newNodeConfig(n.config.TMConfig, n.config.ChainID, genesis)
nodeConfig.GenesisTxHandler = n.genesisTxHandler
nodeConfig.GenesisTxResultHandler = n.genesisTxResultHandler
// Speed up stdlib loading after first start (saves about 2-3 seconds on each reload).
nodeConfig.CacheStdlibLoad = true
nodeConfig.Genesis.ConsensusParams.Block.MaxGas = n.config.MaxGasPerBlock

// recoverFromError handles panics and converts them to errors.
Expand Down Expand Up @@ -512,7 +514,7 @@ func (n *Node) rebuildNode(ctx context.Context, genesis gnoland.GnoGenesisState)
return nil
}

func (n *Node) genesisTxHandler(ctx sdk.Context, tx std.Tx, res sdk.Result) {
func (n *Node) genesisTxResultHandler(ctx sdk.Context, tx std.Tx, res sdk.Result) {
if !res.IsErr() {
return
}
Expand Down
1 change: 0 additions & 1 deletion gno.land/cmd/gnoland/testdata/issue_2283_cacheTypes.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@ import (
func Call(s string) {
base64.StdEncoding.DecodeString("hey")
}

202 changes: 202 additions & 0 deletions gno.land/cmd/gnoland/testdata/restart_missing_type.txtar

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions gno.land/cmd/gnoland/testdata/restart_nonval.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This txtar tests for starting up a non-validator node; then also restarting it.
loadpkg gno.land/p/demo/avl

gnoland start -non-validator
gnoland restart
Loading
Loading