Compare commits

...

5 commits

Author SHA1 Message Date
Ralph
64f6fcecb8
Revert org change until publish to go pkg repository 2024-01-04 12:06:07 -05:00
Ralph
e293c5ab57
Update github repos to lbryfoundation forks 2024-01-04 11:35:29 -05:00
Ralph
5625d54f37
Change to lbryfoundation org 2024-01-04 11:34:08 -05:00
Roy Lee
a0ff51b84a claimtrie: allows '*' in claim name 2022-11-23 08:50:17 -08:00
Roy Lee
4c39a9842c rpcclient: update rescanblockchain support 2022-10-31 00:23:46 -07:00
5 changed files with 12 additions and 12 deletions

View file

@ -18,7 +18,7 @@ builds:
ldflags: ldflags:
- -s -w - -s -w
- -buildid= - -buildid=
- -X github.com/lbryio/lbcd/version.appTag={{ .Tag }} - -X github.com/lbryfoundation/lbcd/version.appTag={{ .Tag }}
targets: targets:
- linux_amd64 - linux_amd64
- linux_arm64 - linux_arm64
@ -35,7 +35,7 @@ builds:
ldflags: ldflags:
- -s -w - -s -w
- -buildid= - -buildid=
- -X github.com/lbryio/lbcd/version.appTag={{ .Tag }} - -X github.com/lbryfoundation/lbcd/version.appTag={{ .Tag }}
env: env:
- CGO_ENABLED=0 - CGO_ENABLED=0
targets: targets:
@ -60,8 +60,8 @@ dockers:
- use: buildx - use: buildx
dockerfile: Dockerfile.goreleaser dockerfile: Dockerfile.goreleaser
image_templates: image_templates:
- "docker.io/lbry/lbcd:{{ .Tag }}" - "docker.io/lbryfoundation/lbcd:{{ .Tag }}"
- "docker.io/lbry/lbcd:latest" - "docker.io/lbryfoundation/lbcd:latest"
release: release:
draft: true draft: true

View file

@ -977,8 +977,8 @@ func NewImportMultiCmd(requests []ImportMultiRequest, options *ImportMultiOption
// RescanBlockchainCmd defines the RescanBlockchain JSON-RPC command. // RescanBlockchainCmd defines the RescanBlockchain JSON-RPC command.
type RescanBlockchainCmd struct { type RescanBlockchainCmd struct {
StartHeight *int64 `jsonrpcdefault:"0"` StartHeight *int32 `jsonrpcdefault:"0"`
StopHeight *int64 `jsonrpcdefault:"0"` StopHeight *int32
} }
// NewRescanBlockchainCmd returns a new instance which can be used to issue // NewRescanBlockchainCmd returns a new instance which can be used to issue
@ -986,7 +986,7 @@ type RescanBlockchainCmd struct {
// //
// The parameters which are pointers indicate they are optional. Passing nil // The parameters which are pointers indicate they are optional. Passing nil
// for optional parameters will use the default value. // for optional parameters will use the default value.
func NewRescanBlockchainCmd(startHeight *int64, stopHeight *int64) *RescanBlockchainCmd { func NewRescanBlockchainCmd(startHeight *int32, stopHeight *int32) *RescanBlockchainCmd {
return &RescanBlockchainCmd{ return &RescanBlockchainCmd{
StartHeight: startHeight, StartHeight: startHeight,
StopHeight: stopHeight, StopHeight: stopHeight,

View file

@ -319,8 +319,8 @@ type ListUnspentResult struct {
// RescanBlockchainResult models the data returned from the rescanblockchain command. // RescanBlockchainResult models the data returned from the rescanblockchain command.
type RescanBlockchainResult struct { type RescanBlockchainResult struct {
StartHeight int64 `json:"start_height"` StartHeight int32 `json:"start_height"`
StoptHeight int64 `json:"stop_height"` StoptHeight int32 `json:"stop_height"`
} }
// SignRawTransactionError models the data that contains script verification // SignRawTransactionError models the data that contains script verification

View file

@ -2062,14 +2062,14 @@ func (r FutureRescanBlockchainResult) Receive() (*btcjson.RescanBlockchainResult
// returned instance. // returned instance.
// //
// See RescanBlockchain for the blocking version and more details. // See RescanBlockchain for the blocking version and more details.
func (c *Client) RescanBlockchainAsync(startHeight *int64, stopHeight *int64) FutureRescanBlockchainResult { func (c *Client) RescanBlockchainAsync(startHeight *int32, stopHeight *int32) FutureRescanBlockchainResult {
cmd := btcjson.NewRescanBlockchainCmd(startHeight, stopHeight) cmd := btcjson.NewRescanBlockchainCmd(startHeight, stopHeight)
return c.SendCmd(cmd) return c.SendCmd(cmd)
} }
// RescanBlockchain rescans the local blockchain for wallet related // RescanBlockchain rescans the local blockchain for wallet related
// transactions from the startHeight to the the inclusive stopHeight. // transactions from the startHeight to the the inclusive stopHeight.
func (c *Client) RescanBlockchain(startHeight *int64, stopHeight *int64) (*btcjson.RescanBlockchainResult, error) { func (c *Client) RescanBlockchain(startHeight *int32, stopHeight *int32) (*btcjson.RescanBlockchainResult, error) {
return c.RescanBlockchainAsync(startHeight, stopHeight).Receive() return c.RescanBlockchainAsync(startHeight, stopHeight).Receive()
} }

View file

@ -206,7 +206,7 @@ func StripClaimScriptPrefix(script []byte) []byte {
return script[cs.Size:] return script[cs.Size:]
} }
const illegalChars = "=&#:*$%?/;\\\b\n\t\r\x00" const illegalChars = "=&#:$%?/;\\\b\n\t\r\x00"
func AllClaimsAreSane(script []byte, enforceSoftFork bool) error { func AllClaimsAreSane(script []byte, enforceSoftFork bool) error {
cs, err := ExtractClaimScript(script) cs, err := ExtractClaimScript(script)