mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Add fee estimation to wallet * Add fee rate to kaspawallet parse * Update go version * Get rid of golint * Add RBF support to wallet * Fix bump_fee UTXO lookup and fix wrong change address * impl storage mass as per KIP9 * Use CalculateTransactionOverallMass where needed * Some fixes * Minor typos * Fix test * update version * BroadcastRBF -> BroadcastReplacement * rc3 * align proto files to only use camel case (fixed on RK as well) * Rename to FeePolicy and add MaxFee option + todo * apply max fee constrains * increase minChangeTarget to 10kas * fmt * Some fixes * fix description: maximum -> minimum * put min feerate check in the correct location * Fix calculateFeeLimits nil handling * Add validations to CLI flags * Change to rc6 * Add checkTransactionFeeRate * Add failed broadcast transactions on send error` * Fix estimateFee change value * Estimate fee correctly for --send-all * On estimateFee always assume that the recipient has ECDSA address * remove patch version --------- Co-authored-by: Michael Sutton <msutton@cs.huji.ac.il>
93 lines
2.4 KiB
YAML
93 lines
2.4 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
# edtited - because base branch can be modified
|
|
# synchronize - update commits on PR
|
|
types: [opened, synchronize, edited]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
name: Tests, ${{ matrix.os }}
|
|
steps:
|
|
- name: Fix CRLF on Windows
|
|
if: runner.os == 'Windows'
|
|
run: git config --global core.autocrlf false
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
# Increase the pagefile size on Windows to aviod running out of memory
|
|
- name: Increase pagefile size on Windows
|
|
if: runner.os == 'Windows'
|
|
run: powershell -command .github\workflows\SetPageFileSize.ps1
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.23
|
|
|
|
# Source: https://github.com/actions/cache/blob/main/examples.md#go---modules
|
|
- name: Go Cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- name: Test
|
|
shell: bash
|
|
run: ./build_and_test.sh -v
|
|
|
|
stability-test-fast:
|
|
runs-on: ubuntu-latest
|
|
name: Fast stability tests, ${{ github.head_ref }}
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.23
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install kaspad
|
|
run: go install ./...
|
|
|
|
- name: Install golint
|
|
run: go get -u golang.org/x/lint/golint
|
|
|
|
- name: Run fast stability tests
|
|
working-directory: stability-tests
|
|
run: ./install_and_test.sh
|
|
|
|
coverage:
|
|
runs-on: ubuntu-latest
|
|
name: Produce code coverage
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.23
|
|
|
|
- name: Delete the stability tests from coverage
|
|
run: rm -r stability-tests
|
|
|
|
- name: Create coverage file
|
|
run: go test -v -covermode=atomic -coverpkg=./... -coverprofile coverage.txt ./...
|
|
|
|
- name: Upload coverage file
|
|
run: bash <(curl -s https://codecov.io/bash)
|