Sam Ricotta
f5bfacd2cf
wip
2022-11-23 18:05:58 +01:00
Callum Waters
22d04dd19d
fix up proto problems with orderbook
2022-11-22 14:24:43 +01:00
Callum Waters
5651a21adb
add notes for testing
2022-11-18 16:54:32 +01:00
Callum Waters
bd75306a93
add more documentation
2022-11-18 16:49:33 +01:00
Callum Waters
b76eb6906c
add hash and state meta tracking
2022-11-18 16:11:35 +01:00
Callum Waters
b0e07355bd
add pairs to the database
...
Co-authored-by: samricotta <samricotta@users.noreply.github.com >
2022-11-18 14:18:52 +01:00
Callum Waters
f7184192a0
add execution components
2022-11-15 10:20:58 +01:00
Callum Waters
a0c68b4941
add signature verification to process proposal
2022-11-14 15:49:51 +01:00
Callum Waters
662517b0db
add logic for signing and signature verification
2022-11-14 15:38:39 +01:00
Sam Ricotta
38897de6d7
orderbook example
2022-11-14 14:54:52 +01:00
Sam Ricotta
e1f3d5c58c
wip test
2022-11-10 09:06:34 +01:00
Sam Ricotta
07804ea061
wip
2022-11-07 22:41:16 +01:00
Sam Ricotta
1f6a6176c0
Prepare and process proposal excecution
2022-10-28 16:20:59 +02:00
Sam Ricotta
b8162782c3
prepare proposal wip
2022-10-17 17:06:18 +03:00
Sam Ricotta
18382f97eb
update
2022-10-17 17:04:40 +03:00
Sam Ricotta
5bfc6d7a3b
process proposal checks
2022-10-17 17:00:06 +03:00
Callum Waters
43ce473402
add function
2022-10-17 16:57:28 +03:00
Callum Waters
3b4c1b903a
split out types verification
2022-10-17 16:42:08 +03:00
Callum Waters
8a40180248
add more tests
2022-10-17 16:36:50 +03:00
Callum Waters
920c5ad813
fix some of the match functions and add more tests
2022-10-17 16:06:30 +03:00
Callum Waters
bbf1169aea
add tests for market matching
2022-10-17 12:36:36 +03:00
Callum Waters
67d3a6e45b
Merge branch 'sam/abci++-tutorial' of github.com:tendermint/tendermint into sam/abci++-tutorial
2022-10-17 12:16:21 +03:00
Callum Waters
0c2483e9f3
add match function
2022-10-17 12:14:40 +03:00
Sam Ricotta
b837ead457
Small fixes
2022-10-16 19:19:44 +03:00
Sam Ricotta
944e9ebdc0
sudo code updates
2022-10-16 18:58:40 +03:00
Callum Waters
28d47d9a38
update msg types
2022-10-16 18:53:39 +03:00
Sam Ricotta
7a81dd25bf
update for pairng
2022-10-06 14:29:22 +02:00
Callum Waters
94c874da32
clean up and add descriptions to the protos
2022-10-06 10:37:16 +02:00
Callum Waters
e7e48024ca
Start sketching out the orderbook app
...
Co-authored-by: samricotta <samricotta@users.noreply.github.com >
2022-10-06 09:31:50 +02:00
samricotta
abbeb919df
Use evidence period when pruning ( #9505 )
...
* Added logic so when pruning, the evidence period is taken into consideration and only deletes unecessary data
2022-10-04 17:57:09 +02:00
Callum Waters
a02cc30e41
config: use a different source of versioning ( #9486 )
2022-10-04 15:01:32 +02:00
mmsqe
5c23ffb05b
Remove the PEG query implementation. ( #7336 ) ( #9478 )
2022-10-04 11:03:03 +02:00
dependabot[bot]
45518db3d0
build(deps): Bump styfle/cancel-workflow-action from 0.10.0 to 0.10.1 ( #9501 )
...
Bumps [styfle/cancel-workflow-action](https://github.com/styfle/cancel-workflow-action ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/styfle/cancel-workflow-action/releases )
- [Commits](https://github.com/styfle/cancel-workflow-action/compare/0.10.0...0.10.1 )
---
updated-dependencies:
- dependency-name: styfle/cancel-workflow-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-03 11:03:48 +02:00
Thane Thomson
f76f6535b4
ci: Only notify on nightly E2E failures ( #9495 )
...
Signed-off-by: Thane Thomson <connect@thanethomson.com >
Signed-off-by: Thane Thomson <connect@thanethomson.com >
2022-09-28 10:07:06 -04:00
dependabot[bot]
20ffe9e101
build(deps): Bump actions/stale from 5 to 6 ( #9493 )
...
Bumps [actions/stale](https://github.com/actions/stale ) from 5 to 6.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/stale/releases ">actions/stale's releases</a>.</em></p>
<blockquote>
<h2>v6.0.0</h2>
<p>⚠️ Breaking change ⚠️ </p>
<p>Issues/PRs default <code>close-issue-reason</code> is now <code>not_planned</code>(<a href="https://github-redirect.dependabot.com/actions/stale/issues/789 ">#789</a>)</p>
<h2>V5.2.0</h2>
<p>Features:
New option <code>include-only-assigned</code> enables users to process only issues/PRs that are already assigned. If there is no assignees and this option is set, issue will not be processed per: <a href="https://github-redirect.dependabot.com/actions/stale/issues/596 ">issue/596</a></p>
<p>Fixes:
Fix date comparison edge case <a href="https://github-redirect.dependabot.com/actions/stale/pull/816 ">PR/816</a></p>
<p>Dependency Updates:
<a href="https://github-redirect.dependabot.com/actions/stale/pull/812 ">PR/812</a></p>
<h2>Fix issue when days-before-close is more than days-before-stale</h2>
<p>fixes a bug introduced in <a href="https://github-redirect.dependabot.com/actions/stale/issues/717 ">#717</a></p>
<p>fixed in <a href="https://github-redirect.dependabot.com/actions/stale/issues/775 ">#775</a></p>
<h2>v5.1.0</h2>
<h1>[5.1.0]</h1>
<p><a href="https://github-redirect.dependabot.com/actions/stale/issues/696 ">Don't process stale issues right after they're marked stale</a>
Add close-issue-reason option <a href="https://github-redirect.dependabot.com/actions/stale/pull/764 ">#764</a><a href="https://github-redirect.dependabot.com/actions/stale/pull/772 ">#772</a>
Various dependabot/dependency updates</p>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/actions/stale/blob/main/CHANGELOG.md ">actions/stale's changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1>[6.0.0]</h1>
<p>⚠️ Breaking change ⚠️ </p>
<p>Issues/PRs default <code>close-issue-reason</code> is now <code>not_planned</code>(<a href="https://github-redirect.dependabot.com/actions/stale/issues/789 ">#789</a>)</p>
<h1>[5.1.0]</h1>
<p><a href="https://github-redirect.dependabot.com/actions/stale/issues/696 ">Don't process stale issues right after they're marked stale</a>
[Add close-issue-reason option]<a href="https://github-redirect.dependabot.com/actions/stale/pull/764 ">#764</a><a href="https://github-redirect.dependabot.com/actions/stale/pull/772 ">#772</a>
Various dependabot/dependency updates</p>
<h2><a href="https://github.com/actions/stale/compare/v3.0.19...v4.1.0 ">4.1.0</a> (2021-07-14)</h2>
<h2>Features</h2>
<ul>
<li><a href="9912fa74d1 ">Ability to exempt draft PRs</a></li>
</ul>
<h2><a href="https://github.com/actions/stale/compare/v3.0.19...v4.0.0 ">4.0.0</a> (2021-07-14)</h2>
<h3>Features</h3>
<ul>
<li><strong>options:</strong> simplify config by removing skip stale message options (<a href="https://github-redirect.dependabot.com/actions/stale/issues/457 ">#457</a>) (<a href="6ec637d238 ">6ec637d</a>), closes <a href="https://github-redirect.dependabot.com/actions/stale/issues/405 ">#405</a> <a href="https://github-redirect.dependabot.com/actions/stale/issues/455 ">#455</a></li>
<li><strong>output:</strong> print output parameters (<a href="https://github-redirect.dependabot.com/actions/stale/issues/458 ">#458</a>) (<a href="3e6d35b685 ">3e6d35b</a>)</li>
</ul>
<h3>Bug Fixes</h3>
<ul>
<li><strong>dry-run:</strong> forbid mutations in dry-run (<a href="https://github-redirect.dependabot.com/actions/stale/issues/500 ">#500</a>) (<a href="f1017f33dd ">f1017f3</a>), closes <a href="https://github-redirect.dependabot.com/actions/stale/issues/499 ">#499</a></li>
<li><strong>logs:</strong> coloured logs (<a href="https://github-redirect.dependabot.com/actions/stale/issues/465 ">#465</a>) (<a href="5fbbfba142 ">5fbbfba</a>)</li>
<li><strong>operations:</strong> fail fast the current batch to respect the operations limit (<a href="https://github-redirect.dependabot.com/actions/stale/issues/474 ">#474</a>) (<a href="5f6f311ca6 ">5f6f311</a>), closes <a href="https://github-redirect.dependabot.com/actions/stale/issues/466 ">#466</a></li>
<li><strong>label comparison</strong>: make label comparison case insensitive <a href="https://github-redirect.dependabot.com/actions/stale/pull/517 ">#517</a>, closes <a href="https://github-redirect.dependabot.com/actions/stale/pull/516 ">#516</a></li>
<li><strong>filtering comments by actor could have strange behavior</strong>: "stale" comments are now detected based on if the message is the stale message not <em>who</em> made the comment(<a href="https://github-redirect.dependabot.com/actions/stale/pull/519 ">#519</a>), fixes <a href="https://github-redirect.dependabot.com/actions/stale/pull/441 ">#441</a>, <a href="https://github-redirect.dependabot.com/actions/stale/pull/509 ">#509</a>, <a href="https://github-redirect.dependabot.com/actions/stale/pull/518 ">#518</a></li>
</ul>
<h3>Breaking Changes</h3>
<ul>
<li>The options <code>skip-stale-issue-message</code> and <code>skip-stale-pr-message</code> were removed. Instead, setting the options <code>stale-issue-message</code> and <code>stale-pr-message</code> will be enough to let the stale workflow add a comment. If the options are unset, a comment will not be added which was the equivalent of setting <code>skip-stale-issue-message</code> to <code>true</code>.</li>
<li>The <code>operations-per-run</code> option will be more effective. After migrating, you could face a failed-fast process workflow if you let the default value (30) or set it to a small number. In that case, you will see a warning at the end of the logs (if enabled) indicating that the workflow was stopped sooner to avoid consuming too much API calls. In most cases, you can just increase this limit to make sure to process everything in a single run.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="3de2653986 "><code>3de2653</code></a> Update changelog for v6.0.0 (<a href="https://github-redirect.dependabot.com/actions/stale/issues/829 ">#829</a>)</li>
<li><a href="02e44c81cc "><code>02e44c8</code></a> fix(options)!: Make <code>not_planned</code> the default <code>close-issue-reason</code> (<a href="https://github-redirect.dependabot.com/actions/stale/issues/807 ">#807</a>)</li>
<li>See full diff in <a href="https://github.com/actions/stale/compare/v5...v6 ">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
2022-09-27 15:51:22 +00:00
Callum Waters
af5281d704
statesync: convert snapshot hashes to hex strings for logging ( #9471 )
2022-09-26 17:58:52 +02:00
Emmanuel T Odeke
ed68aadd2b
.github/workflows: add cosmos/gosec vulnerability scanner for each Push/PR ( #9464 )
...
Adds a code vulnerability scanner that'll flag issues and issue advisories from cosmos/gosec https://github.com/cosmos/gosec
2022-09-23 20:26:55 +00:00
JayT106
e8ec611ed4
tools: use os home dir to instead of the hardcoded PATH ( #9444 )
...
porting PR #6498 to main
#### PR checklist
- [x] Tests written/updated, or no tests needed
- [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [x] Updated relevant documentation (`docs/`) and code comments, or no
documentation updates needed
2022-09-23 20:15:19 +00:00
William Banfield
5fe1a72416
loadtime: add block time to the data point ( #9484 )
...
This pull request adds the block time as the unix time since the epoch to the `report` tool's csv output.
```csv
...
a7a8b903-1136-4da1-97aa-d25da7b4094f,1614226790,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1614196724,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1613097336,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1609365168,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1617199169,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1615197134,1663707084905417366,4,200,1024
a7a8b903-1136-4da1-97aa-d25da7b4094f,1610399447,1663707084905417366,4,200,1024
...
```
#### PR checklist
- [ ] Tests written/updated, or no tests needed
- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [ ] Updated relevant documentation (`docs/`) and code comments, or no
documentation updates needed
2022-09-23 13:55:55 +00:00
Thane Thomson
b7f1e1f218
config: Add missing storage section when generating config ( #9483 )
2022-09-23 12:19:49 +02:00
Callum Waters
a0ed437942
config: cleaner separation of tests ( #9421 )
2022-09-22 12:42:25 +02:00
Callum Waters
561440a56d
config: add version to the config file ( #9413 )
2022-09-22 10:49:31 +02:00
Thane Thomson
f1dc5811c3
Sync Vote.Verify() in spec with implementation ( #9466 )
2022-09-21 21:29:24 -04:00
Thane Thomson
e48d5a0294
docs: Use release badge in README instead of latest tag ( #9475 )
...
[Rendered](https://github.com/tendermint/tendermint/blob/thane/readme-release-badge/README.md )
The release tag currently shows `dev-v0.38.0`, which isn't useful to anyone.
---
#### PR checklist
- [x] Tests written/updated, or no tests needed
- [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [x] Updated relevant documentation (`docs/`) and code comments, or no
documentation updates needed
2022-09-21 21:50:18 +00:00
William Banfield
f2c32c9b3e
metrics: fix panic because of absent prometheus label ( #9455 )
...
Absence of this label causes a panic because the setters try to access the label despite it never being added to the metric. This PR adds the label to the metrics, thus preventing the panic.
#### PR checklist
- [ ] Tests written/updated, or no tests needed
- [ ] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [ ] Updated relevant documentation (`docs/`) and code comments, or no
documentation updates needed
2022-09-21 17:07:07 +00:00
Mark Rushakoff
84bc77cb1f
Ensure Dockerfile stages use consistent Go version ( #9462 )
...
I noticed the tendermint image was running on Go 1.15. I assume that was just a missed search and replace when updating to go1.18.
Pull the go base image into a build arg so that the image is only defined once, and used consistently across all stages of the build.
#### PR checklist
- [x] Tests written/updated, or no tests needed
- [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [x] Updated relevant documentation (`docs/`) and code comments, or no
documentation updates needed
2022-09-21 13:12:32 +00:00
Sergio Mena
fbcfecbc3a
fix spec ( #9467 )
2022-09-21 14:33:29 +02:00
JayT106
fe0aa4d30e
Normalise GenesisDoc before saving to state ( #6059 ) ( #9458 )
2022-09-21 11:06:13 +02:00
JayT106
080dfab992
p2p/pex: reuse hash.Hasher per addrbook for speed ( #6509 ) ( #9445 )
...
Cherry-picking PR #6509
By pre-creating the hasher, instead of creating new one everytime addrbook.hash is called.
```
name old time/op new time/op delta
AddrBook_hash-8 181ns ±13% 80ns ± 1% -56.08% (p=0.000 n=10+10)
name old alloc/op new alloc/op delta
AddrBook_hash-8 216B ± 0% 8B ± 0% -96.30% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
AddrBook_hash-8 2.00 ± 0% 1.00 ± 0% -50.00% (p=0.000 n=10+10)
```
Fixed #6508
---
#### PR checklist
- [x] Tests written/updated, or no tests needed
- [x] `CHANGELOG_PENDING.md` updated, or no changelog entry needed
- [x] Updated relevant documentation (`docs/`) and code comments, or no
documentation updates needed
2022-09-21 08:34:14 +00:00
JayT106
ab4238a0e2
crypto/merkle: optimize merkle tree hashing ( #6513 ) ( #9446 )
...
* crypto/merkle: optimize merkle tree hashing (#6513 )
Upstream https://github.com/lazyledger/lazyledger-core/pull/351 to optimize merkle tree hashing
```
benchmark old ns/op new ns/op delta
BenchmarkHashAlternatives/recursive-8 22914 21949 -4.21%
BenchmarkHashAlternatives/iterative-8 21634 21939 +1.41%
benchmark old allocs new allocs delta
BenchmarkHashAlternatives/recursive-8 398 200 -49.75%
BenchmarkHashAlternatives/iterative-8 399 301 -24.56%
benchmark old bytes new bytes delta
BenchmarkHashAlternatives/recursive-8 19088 6496 -65.97%
BenchmarkHashAlternatives/iterative-8 21776 13984 -35.78%
```
cc @odeke-em @cuonglm
* update pending log
Co-authored-by: Marko <marbar3778@yahoo.com >
2022-09-21 10:18:05 +02:00