Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: parameters upgrade #31

Merged
merged 5 commits into from
Sep 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix linter
KonradStaniec committed Sep 4, 2024
commit 50eabeaa95303a3c3cdf11a45b662f0931e67cbd
4 changes: 4 additions & 0 deletions babylonclient/interface.go
Original file line number Diff line number Diff line change
@@ -172,6 +172,10 @@ func GetMockClient() *MockBabylonClient {

slashingPkScript, err := txscript.PayToAddrScript(slashingAddress)

if err != nil {
panic(err)
}

fpBtcPrivKey, err := btcec.NewPrivateKey()
if err != nil {
panic(err)
15 changes: 0 additions & 15 deletions staker/stakerapp.go
Original file line number Diff line number Diff line change
@@ -98,21 +98,6 @@ const (

defaultWalletUnlockTimeout = 15

// Actual virtual size of transaction which spends staking transaction through slashing
// path. In reality it highly depends on slashingAddress size:
// for p2pk - 222vb
// for p2wpkh - 177vb
// for p2tr - 189vb
// We are chosing 180vb as we expect slashing address will be one of the more recent
// address types.
// Transaction is quite big as witness to spend is composed of:
// 1. StakerSig
// 2. CovenantSig
// 3. FinalityProviderSig
// 4. StakingScript
// 5. Taproot control block
slashingPathSpendTxVSize = 180

// Set minimum fee to 1 sat/byte, as in standard rules policy
MinFeePerKb = txrules.DefaultRelayFeePerKb


Unchanged files with check annotations Beta

FROM golang:1.22.3 as builder

Check warning on line 1 in Dockerfile

GitHub Actions / docker_pipeline / docker_build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/
# Install cli tools for building and final image
RUN apt-get update && apt-get install -y make git bash gcc curl jq