Skip to content

Commit

Permalink
Release v3.3.2
Browse files Browse the repository at this point in the history
- fix: add crossbeam-epoch dependency to fix panic backtrace messages on 0.7.1 version #52
- V3 custom config for testnets #57
- allow usernet to mine more blocks using header version 6, just like f… #58
- fix: A small update to enable block mining on usernet v3 #59
- feat: usernet now is optimized to mine more blocks per second #60
- fix: small fix related to match_ref variable #61
- Fix/documentation #62
- Feat/get blocks #64
- feat: Added feedback if foundations are broken #65
- Update the develop branch with master commits #66
- Feat: Add Testnet configuration file #67
- Floonet configuration #68
- Fix cucumber tests #69
- Freeze randomx and progpow libraries using tags #73
- Make builds reproducible #74
- Edit pre-commit and add PR template #75
- Add automation to build the release binaries and tar files #76
- Update main readme for the project #78
  • Loading branch information
jhelison authored Jan 19, 2023
2 parents a6c01ad + 25f3bde commit e22cee1
Show file tree
Hide file tree
Showing 45 changed files with 2,126 additions and 829 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# use hard tabs for rust source files
[*]
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.rs]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Required data**
- Node/Wallet/Miner log as text or screenshot
- Config toml file or command line
- OS: [e.g. Windows]
- Rust Version
- Cargo Version

**Additional context**
Add any other context about the problem here.
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Chore (miscellaneous changes e.g. modifying .gitignore)
- [ ] Build (Affect build components like build tool, ci pipeline, dependencies, project version)
- [ ] Docs (documentation update)

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes

- [ ] Test A
- [ ] Test B

# Relevant notes

Notes about your pull request that may be useful for the reviewer
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ test_output
wallet_data
wallet/db
.idea/
build/
/build/
release/
35 changes: 13 additions & 22 deletions .hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -22,38 +22,29 @@ if [ $? != 0 ]; then
exit 1
fi

result=0
problem_files=()

printf "[pre_commit] rustfmt "

# first collect all the files that need reformatting
for file in $(git diff --name-only --cached); do
if [ ${file: -3} == ".rs" ]; then
# first collect all the files that need reformatting
rustfmt --check $file &>/dev/null
if [ $? != 0 ]; then
problem_files+=($file)
result=1
fi
fi
done

# now reformat all the files that need reformatting
for file in ${problem_files[@]}; do
rustfmt $file
done

# and let the user know what just happened (and which files were affected)
printf "\033[0;32mok\033[0m \n"
if [ $result != 0 ]; then
# printf "\033[0;31mrustfmt\033[0m \n"
printf "[pre_commit] the following files were rustfmt'd (not yet committed): \n"

for file in ${problem_files[@]}; do
printf "\033[0;31m $file\033[0m \n"
done
if [ ${#problem_files[@]} == 0 ]; then
# nothing to do
printf "[pre_commit] rustfmt \033[0;32mok\033[0m \n"
else
# reformat the files that need it and re-stage them.
printf "[pre_commit] the following files were rustfmt'd before commit: \n"
for file in ${problem_files[@]}; do
rustfmt $file
git add $file
printf "\033[0;32m $file\033[0m \n"
done
fi

exit 0
# to actually fail the build on rustfmt failure -
# exit $result
exit 0
Loading

0 comments on commit e22cee1

Please sign in to comment.