multi: add new build tag integration

This commit adds a new build tag `integration` and removes the old tag
`rpctest` for clarity. Multiple unnecessary usages of `build !rpctest`
is also removed.
This commit is contained in:
yyforyongyu
2022-08-12 15:16:35 +08:00
parent d730797880
commit edba938996
24 changed files with 21 additions and 72 deletions

View File

@@ -1,6 +1,3 @@
//go:build !rpctest
// +build !rpctest
package macaroons
import "github.com/btcsuite/btcwallet/snacl"

View File

@@ -1,15 +1,14 @@
//go:build rpctest
// +build rpctest
//go:build integration
package macaroons
import "github.com/btcsuite/btcwallet/waddrmgr"
var (
func init() {
// Below are the reduced scrypt parameters that are used when creating
// the encryption key for the macaroon database with snacl.NewSecretKey.
// We use very low values for our itest/rpctest to speed things up.
scryptN = waddrmgr.FastScryptOptions.N
scryptR = waddrmgr.FastScryptOptions.R
scryptP = waddrmgr.FastScryptOptions.P
)
}