Skip to content

Rpc commit#405

Merged
ebuchman merged 7 commits intodevelopfrom
rpc-commit
Feb 16, 2017
Merged

Rpc commit#405
ebuchman merged 7 commits intodevelopfrom
rpc-commit

Conversation

@ebuchman
Copy link
Contributor

@ebuchman ebuchman commented Feb 14, 2017

  • Breaking Change: BlockMeta now contains BlockID instead of the Hash and PartSetHeader (so not compatible with older dbs)
  • expose new /commit that returns the header and commit for a block at height H

Question: should the commit also return the BlockID (ie. the block hash and partsetheader - the former it can get from the header, the latter it can only get from the next block, or by fetching the whole block and building the part set) ?

@codecov-io
Copy link

codecov-io commented Feb 14, 2017

Codecov Report

Merging #405 into develop will decrease coverage by -0.17%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##           develop     #405      +/-   ##
===========================================
- Coverage    51.62%   51.46%   -0.17%     
===========================================
  Files           37       37              
  Lines         4453     4452       -1     
===========================================
- Hits          2299     2291       -8     
- Misses        1940     1948       +8     
+ Partials       214      213       -1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e972b94...a3898fa. Read the comment docs.

@ethanfrey
Copy link
Contributor

ethanfrey commented Feb 16, 2017

Cool. Nice job with the commits from current block. Maybe we could send this along with the header as I suggest in #407

type ResultCommit struct {
	*Header    `json:"header"`
	*Commit `json:"commit"`
        Canonical bool `json:"canonical"`
}

What do you think? It would make me happy ;)

@ebuchman
Copy link
Contributor Author

Isn't that what it already does? What am I missing?

@ethanfrey
Copy link
Contributor

I just looked at the diff for the "added /commit" commit. I didn't see you added the Header in a later field.

yes, I like it. and if it makes in by 0.9 even more awesome!

@ethanfrey ethanfrey self-requested a review February 16, 2017 16:14
Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@ebuchman ebuchman merged commit 3ebd69d into develop Feb 16, 2017
@ebuchman ebuchman deleted the rpc-commit branch February 16, 2017 21:11
This was referenced Feb 18, 2017
faddat referenced this pull request in notional-labs/tendermint Apr 3, 2023
* Bump minimum Go version to 1.20 in go.mod

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Bump minimum Go version in CI/test infra

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Bump Go version in docs

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add changelog entry

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Ignore lint

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Fix math/rand usages in tests

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Fix lint: use local random source in test

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Rename variable for clarity

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ci: Bump version of golangci-lint to latest

Signed-off-by: Thane Thomson <connect@thanethomson.com>

---------

Signed-off-by: Thane Thomson <connect@thanethomson.com>
adrianbrink pushed a commit to heliaxdev/tendermint that referenced this pull request May 23, 2023
* Update to use Go 1.20 (tendermint#405)

* Bump minimum Go version to 1.20 in go.mod

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Bump minimum Go version in CI/test infra

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Bump Go version in docs

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Add changelog entry

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Ignore lint

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Fix math/rand usages in tests

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Fix lint: use local random source in test

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Rename variable for clarity

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* ci: Bump version of golangci-lint to latest

Signed-off-by: Thane Thomson <connect@thanethomson.com>

---------

Signed-off-by: Thane Thomson <connect@thanethomson.com>
(cherry picked from commit 200784a)

# Conflicts:
#	.github/workflows/e2e-nightly-37x.yml
#	README.md
#	libs/rand/random.go
#	test/fuzz/README.md
#	test/fuzz/p2p/secret_connection/read_write.go
#	test/fuzz/tests/mempool_test.go
#	test/fuzz/tests/rpc_jsonrpc_server_test.go

* Resolve conflicts

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Remove use of deprecated global random seed

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Attempt to appease linter

Signed-off-by: Thane Thomson <connect@thanethomson.com>

* Attempt 2 to appease linter

Signed-off-by: Thane Thomson <connect@thanethomson.com>

---------

Signed-off-by: Thane Thomson <connect@thanethomson.com>
Co-authored-by: Thane Thomson <connect@thanethomson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants