fixup: short circuit 0 score calculations
When the score is already 0 there is no need for forther floating point ops.
When the score is already 0 there is no need for forther floating point ops.
currentTime < peerScoreTs shouldn't happen with getMonotinicTime but better be safe.
We don't track peers that don't have an ongoing attempt any longer so TxNoAttempt isn't needed.
Co-authored-by: Karl Knutsson <[email protected]>
./network-mux/demo/ns-setup.sh is a generic script for running client / server applications using traffic shaping. We can reuse it for `tx-submission` demo.
This makes it easier to analyse different runs, since all of them use the same connection four tuples.
In case of duplicate txids a second invalid txids could be counted as valid because it was tracked with txid along
If there is at least one TX outstanding don't ack the final txid in the window
Use nothunks to assert that there are no thunks after some property based tests.
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 4 to 5. - [Release notes](https://github.com/actions/upload-pages-artifact/releases) - [Commits](https://github.com/actions/upload-pages-artifact/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/upload-pages-artifact dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
WithBytes retains tx bytes for whole tx life time (e.g. until the inbound side exits), avoiding it we can GC the bytes after decoding is done and we extract the length of a tx.
Increased span of mini-protocol numbers.
This avoids re-serialisation cost to get the size, increases allocation by storing bytes of the original `tx`.
* maximum number of txids to request * unackwnoledged buffer size
Use `WithBearer` with a custom `show` function.