Fixed erroneous txscript.KeyClosure documentation.
This commit is contained in:
parent
e13b4febec
commit
8fcea82a56
1 changed files with 4 additions and 4 deletions
|
@ -346,10 +346,10 @@ type KeyDB interface {
|
|||
GetKey(btcutil.Address) (*btcec.PrivateKey, bool, error)
|
||||
}
|
||||
|
||||
// KeyClosure implements ScriptDB with a closure
|
||||
// KeyClosure implements KeyDB with a closure.
|
||||
type KeyClosure func(btcutil.Address) (*btcec.PrivateKey, bool, error)
|
||||
|
||||
// GetKey implements KeyDB by returning the result of calling the closure
|
||||
// GetKey implements KeyDB by returning the result of calling the closure.
|
||||
func (kc KeyClosure) GetKey(address btcutil.Address) (*btcec.PrivateKey,
|
||||
bool, error) {
|
||||
return kc(address)
|
||||
|
@ -361,10 +361,10 @@ type ScriptDB interface {
|
|||
GetScript(btcutil.Address) ([]byte, error)
|
||||
}
|
||||
|
||||
// ScriptClosure implements ScriptDB with a closure
|
||||
// ScriptClosure implements ScriptDB with a closure.
|
||||
type ScriptClosure func(btcutil.Address) ([]byte, error)
|
||||
|
||||
// GetScript implements ScriptDB by returning the result of calling the closure
|
||||
// GetScript implements ScriptDB by returning the result of calling the closure.
|
||||
func (sc ScriptClosure) GetScript(address btcutil.Address) ([]byte, error) {
|
||||
return sc(address)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue