-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe069f2
commit fcca94a
Showing
284 changed files
with
19,618 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
Language: Proto | ||
BasedOnStyle: Google | ||
IndentWidth: 2 | ||
ColumnLimit: 0 | ||
AlignConsecutiveAssignments: true | ||
AlignConsecutiveDeclarations: true | ||
SpacesInSquareBrackets: true | ||
ReflowComments: true | ||
SortIncludes: true | ||
SortUsingDeclarations: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
test/e2e/build | ||
test/e2e/networks | ||
test/logs | ||
test/p2p/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{sh,Makefile}] | ||
indent_style = tab | ||
|
||
[*.proto] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us squash bugs! | ||
|
||
--- | ||
<!-- | ||
Please fill in as much of the template below as you can. | ||
Be ready for followup questions, and please respond in a timely | ||
manner. We might ask you to provide additional logs and data (tendermint & app). | ||
--> | ||
|
||
**Tendermint version** (use `tendermint version` or `git rev-parse --verify HEAD` if installed from source): | ||
|
||
|
||
**ABCI app** (name for built-in, URL for self-written if it's publicly available): | ||
|
||
**Environment**: | ||
- **OS** (e.g. from /etc/os-release): | ||
- **Install tools**: | ||
- **Others**: | ||
|
||
|
||
**What happened**: | ||
|
||
|
||
**What you expected to happen**: | ||
|
||
|
||
**Have you tried the latest version**: yes/no | ||
|
||
**How to reproduce it** (as minimally and precisely as possible): | ||
|
||
**Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file)**: | ||
|
||
**Config (you can paste only the changes you've made)**: | ||
|
||
**node command runtime flags**: | ||
|
||
**Please provide the output from the `http://<ip>:<port>/dump_consensus_state` RPC endpoint for consensus bugs** | ||
|
||
**Anything else we need to know**: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Feature Request | ||
about: Create a proposal to request a feature | ||
|
||
--- | ||
|
||
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺ | ||
v ✰ Thanks for opening an issue! ✰ | ||
v Before smashing the submit button please review the template. | ||
v Word of caution: poorly thought-out proposals may be rejected | ||
v without deliberation | ||
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --> | ||
|
||
## Summary | ||
|
||
<!-- Short, concise description of the proposed feature --> | ||
|
||
## Problem Definition | ||
|
||
<!-- Why do we need this feature? | ||
What problems may be addressed by introducing this feature? | ||
What benefits does Tendermint stand to gain by including this feature? | ||
Are there any disadvantages of including this feature? --> | ||
|
||
## Proposal | ||
|
||
<!-- Detailed description of requirements of implementation --> | ||
|
||
____ | ||
|
||
#### For Admin Use | ||
|
||
- [ ] Not duplicate issue | ||
- [ ] Appropriate labels applied | ||
- [ ] Appropriate contributors tagged | ||
- [ ] Contributor assigned/self-assigned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
pullRequestOpened: | | ||
:wave: Thanks for creating a PR! | ||
Before we can merge this PR, please make sure that all the following items have been | ||
checked off. If any of the checklist items are not applicable, please leave them but | ||
write a little note why. | ||
- [ ] Wrote tests | ||
- [ ] Updated CHANGELOG_PENDING.md | ||
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work. | ||
- [ ] Updated relevant documentation (`docs/`) and code comments | ||
- [ ] Re-reviewed `Files changed` in the Github PR explorer | ||
- [ ] Applied Appropriate Labels | ||
Thank you for your contribution to Tendermint! :rocket: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
default: true, | ||
MD007: { "indent": 4 } | ||
MD013: false | ||
MD024: { siblings_only: true } | ||
MD025: false | ||
MD033: { no-inline-html: false } | ||
no-hard-tabs: false | ||
whitespace: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
docs/node_modules | ||
CHANGELOG.md | ||
docs/architecture/* | ||
crypto/secp256k1/** | ||
scripts/* | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# The Tendermint Code of Conduct | ||
|
||
This code of conduct applies to all projects run by the Tendermint/COSMOS team and hence to tendermint. | ||
|
||
|
||
---- | ||
|
||
|
||
# Conduct | ||
|
||
## Contact: conduct@tendermint.com | ||
|
||
* We are committed to providing a friendly, safe and welcoming environment for all, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, nationality, or other similar characteristic. | ||
|
||
* On Slack, please avoid using overtly sexual nicknames or other nicknames that might detract from a friendly, safe and welcoming environment for all. | ||
|
||
* Please be kind and courteous. There’s no need to be mean or rude. | ||
|
||
* Respect that people have differences of opinion and that every design or implementation choice carries a trade-off and numerous costs. There is seldom a right answer. | ||
|
||
* Please keep unstructured critique to a minimum. If you have solid ideas you want to experiment with, make a fork and see how it works. | ||
|
||
* We will exclude you from interaction if you insult, demean or harass anyone. That is not welcome behaviour. We interpret the term “harassment” as including the definition in the [Citizen Code of Conduct](http://citizencodeofconduct.org/); if you have any lack of clarity about what might be included in that concept, please read their definition. In particular, we don’t tolerate behavior that excludes people in socially marginalized groups. | ||
|
||
* Private harassment is also unacceptable. No matter who you are, if you feel you have been or are being harassed or made uncomfortable by a community member, please contact one of the channel admins or the person mentioned above immediately. Whether you’re a regular contributor or a newcomer, we care about making this community a safe place for you and we’ve got your back. | ||
|
||
* Likewise any spamming, trolling, flaming, baiting or other attention-stealing behaviour is not welcome. | ||
|
||
|
||
---- | ||
|
||
|
||
# Moderation | ||
|
||
These are the policies for upholding our community’s standards of conduct. If you feel that a thread needs moderation, please contact the above mentioned person. | ||
|
||
1. Remarks that violate the Tendermint/COSMOS standards of conduct, including hateful, hurtful, oppressive, or exclusionary remarks, are not allowed. (Cursing is allowed, but never targeting another user, and never in a hateful manner.) | ||
|
||
2. Remarks that moderators find inappropriate, whether listed in the code of conduct or not, are also not allowed. | ||
|
||
3. Moderators will first respond to such remarks with a warning. | ||
|
||
4. If the warning is unheeded, the user will be “kicked,” i.e., kicked out of the communication channel to cool off. | ||
|
||
5. If the user comes back and continues to make trouble, they will be banned, i.e., indefinitely excluded. | ||
|
||
6. Moderators may choose at their discretion to un-ban the user if it was a first offense and they offer the offended party a genuine apology. | ||
|
||
7. If a moderator bans someone and you think it was unjustified, please take it up with that moderator, or with a different moderator, in private. Complaints about bans in-channel are not allowed. | ||
|
||
8. Moderators are held to a higher standard than other community members. If a moderator creates an inappropriate situation, they should expect less leeway than others. | ||
|
||
In the Tendermint/COSMOS community we strive to go the extra step to look out for each other. Don’t just aim to be technically unimpeachable, try to be your best self. In particular, avoid flirting with offensive or sensitive issues, particularly if they’re off-topic; this all too often leads to unnecessary fights, hurt feelings, and damaged trust; worse, it can drive people away from the community entirely. | ||
|
||
And if someone takes issue with something you said or did, resist the urge to be defensive. Just stop doing what it was they complained about and apologize. Even if you feel you were misinterpreted or unfairly accused, chances are good there was something you could’ve communicated better — remember that it’s your responsibility to make your fellow Cosmonauts comfortable. Everyone wants to get along and we are all here first and foremost because we want to talk about cool technology. You will find that people will be eager to assume good intent and forgive as long as you earn their trust. | ||
|
||
The enforcement policies listed above apply to all official Tendermint/COSMOS venues.For other projects adopting the Tendermint/COSMOS Code of Conduct, please contact the maintainers of those projects for enforcement. If you wish to use this code of conduct for your own project, consider explicitly mentioning your moderation policy or making a copy with your own moderation policy so as to avoid confusion. | ||
|
||
*Adapted from the [Node.js Policy on Trolling](http://blog.izs.me/post/30036893703/policy-on-trolling), the [Contributor Covenant v1.3.0](http://contributor-covenant.org/version/1/3/0/) and the [Rust Code of Conduct](https://www.rust-lang.org/en-US/conduct.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tendermint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM golang:latest | ||
|
||
# Grab deps (jq, hexdump, xxd, killall) | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
jq bsdmainutils vim-common psmisc netcat | ||
|
||
# Add testing deps for curl | ||
RUN echo 'deb http://httpredir.debian.org/debian testing main non-free contrib' >> /etc/apt/sources.list && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends curl | ||
|
||
VOLUME /go | ||
|
||
EXPOSE 26656 | ||
EXPOSE 26657 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
build: | ||
@sh -c "'$(CURDIR)/build.sh'" | ||
|
||
push: | ||
@sh -c "'$(CURDIR)/push.sh'" | ||
|
||
build_testing: | ||
docker build --tag tendermint/testing -f ./Dockerfile.testing . | ||
|
||
build_amazonlinux_buildimage: | ||
docker build -t "tendermint/tendermint:build_c-amazonlinux" -f Dockerfile.build_c-amazonlinux . | ||
|
||
.PHONY: build push build_testing build_amazonlinux_buildimage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Get the tag from the version, or try to figure it out. | ||
if [ -z "$TAG" ]; then | ||
TAG=$(awk -F\" '/TMCoreSemVer =/ { print $2; exit }' < ../version/version.go) | ||
fi | ||
if [ -z "$TAG" ]; then | ||
echo "Please specify a tag." | ||
exit 1 | ||
fi | ||
|
||
TAG_NO_PATCH=${TAG%.*} | ||
|
||
read -p "==> Build 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
docker build -t "tendermint/tendermint" -t "tendermint/tendermint:$TAG" -t "tendermint/tendermint:$TAG_NO_PATCH" . | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Get the tag from the version, or try to figure it out. | ||
if [ -z "$TAG" ]; then | ||
TAG=$(awk -F\" '/TMCoreSemVer =/ { print $2; exit }' < ../version/version.go) | ||
fi | ||
if [ -z "$TAG" ]; then | ||
echo "Please specify a tag." | ||
exit 1 | ||
fi | ||
|
||
TAG_NO_PATCH=${TAG%.*} | ||
|
||
read -p "==> Push 3 docker images with the following tags (latest, $TAG, $TAG_NO_PATCH)? y/n" -n 1 -r | ||
echo | ||
if [[ $REPLY =~ ^[Yy]$ ]] | ||
then | ||
docker push "tendermint/tendermint:latest" | ||
docker push "tendermint/tendermint:$TAG" | ||
docker push "tendermint/tendermint:$TAG_NO_PATCH" | ||
fi |
Oops, something went wrong.