Oliver Gugger
4 years ago
4 changed files with 42 additions and 2 deletions
@ -0,0 +1,13 @@
|
||||
// +build !rpctest
|
||||
|
||||
package macaroons |
||||
|
||||
import "github.com/btcsuite/btcwallet/snacl" |
||||
|
||||
var ( |
||||
// Below are the default scrypt parameters that are used when creating
|
||||
// the encryption key for the macaroon database with snacl.NewSecretKey.
|
||||
scryptN = snacl.DefaultN |
||||
scryptR = snacl.DefaultR |
||||
scryptP = snacl.DefaultP |
||||
) |
@ -0,0 +1,14 @@
|
||||
// +build rpctest
|
||||
|
||||
package macaroons |
||||
|
||||
import "github.com/btcsuite/btcwallet/waddrmgr" |
||||
|
||||
var ( |
||||
// 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 |
||||
) |
@ -0,0 +1,12 @@
|
||||
package macaroons |
||||
|
||||
import "github.com/btcsuite/btcwallet/waddrmgr" |
||||
|
||||
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 |
||||
} |
Loading…
Reference in new issue