WIP: Feature/6/jeffreypicard/dockerize for deployment #7
7 changed files with 8 additions and 6 deletions
|
@ -224,10 +224,7 @@ func withinLevelBounds(reduction int64, lv int64) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
reduction++
|
reduction++
|
||||||
if ((reduction*reduction + reduction) >> 1) <= lv {
|
return ((reduction*reduction + reduction) >> 1) > lv
|
||||||
return false
|
|
||||||
}
|
|
||||||
return true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// CheckTransactionSanity performs some preliminary checks on a transaction to
|
// CheckTransactionSanity performs some preliminary checks on a transaction to
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
// This file is ignored during the regular build due to the following build tag.
|
// This file is ignored during the regular build due to the following build tag.
|
||||||
// It is called by go generate and used to automatically generate pre-computed
|
// It is called by go generate and used to automatically generate pre-computed
|
||||||
// tables used to accelerate operations.
|
// tables used to accelerate operations.
|
||||||
|
//go:build ignore
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
// This file is ignored during the regular build due to the following build tag.
|
// This file is ignored during the regular build due to the following build tag.
|
||||||
// This build tag is set during go generate.
|
// This build tag is set during go generate.
|
||||||
|
//go:build gensecp256k1
|
||||||
// +build gensecp256k1
|
// +build gensecp256k1
|
||||||
|
|
||||||
package btcec
|
package btcec
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !windows && !plan9
|
||||||
// +build !windows,!plan9
|
// +build !windows,!plan9
|
||||||
|
|
||||||
package limits
|
package limits
|
||||||
|
|
|
@ -1382,6 +1382,7 @@ func dial(config *ConnConfig) (*websocket.Conn, error) {
|
||||||
// cases above apply.
|
// cases above apply.
|
||||||
return nil, errors.New(resp.Status)
|
return nil, errors.New(resp.Status)
|
||||||
}
|
}
|
||||||
|
resp.Body.Close()
|
||||||
return wsConn, nil
|
return wsConn, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by an ISC
|
// Use of this source code is governed by an ISC
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris
|
||||||
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
4
upnp.go
4
upnp.go
|
@ -136,7 +136,7 @@ func Discover() (nat NAT, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = errors.New("UPnP port discovery failed")
|
err = errors.New("UPnP port discovery failed")
|
||||||
return
|
return nat, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// service represents the Service type in an UPnP xml description.
|
// service represents the Service type in an UPnP xml description.
|
||||||
|
@ -269,7 +269,7 @@ func getServiceURL(rootURL string) (url string, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
url = combineURL(rootURL, d.ControlURL)
|
url = combineURL(rootURL, d.ControlURL)
|
||||||
return
|
return url, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// combineURL appends subURL onto rootURL.
|
// combineURL appends subURL onto rootURL.
|
||||||
|
|
Loading…
Reference in a new issue