How to Operate the new v1 spynode with smart-contract v1.0.1? spynode gets error 401

Is the v1 spynode a new service that should be started up before daemon smartcontractd?

Do I have to run the makefile for the new spynode, or just unzip it and run?

typo in the README.md in spynode:

source ./tmp/dev.env && go get cmd/spynode/main.go

should be

source ./tmp/dev.env && go run cmd/spynoded/main.go

the ‘d’ WAS MISSING at the end of spynoded and ‘get’ shoild be ‘run’.

I took a guess and ran the new spynode but it got error 401 after running a few hours:
000000000000000007ae2323cf8074e681805c285dfffdbe1c105981f30cf047",“subsystem”:“SpyNode”}

{“level”:“verbose”,“ts”:1618058473.608367,“caller”:“handlers/block.go:51”,“msg”:“Received block : 00000000000000000263d16f3321df241d2e964329154c381931940d8a426b23”,“subsystem”:“SpyNode”}

{“level”:“info”,“ts”:1618058473.643381,“caller”:“spynode/blocks.go:450”,“msg”:“Processed block : 000000000000000008b7897c3a1cadca1f1972f8de9fbbe66bddbaaf1d22092c : 88.196 ms”,“subsystem”:“SpyNode”}

{“level”:“verbose”,“ts”:1618058473.668838,“caller”:“handlers/block.go:51”,“msg”:“Received block : 0000000000000000086347976dab48a4f61f31a94f604911f1c2c48942007cad”,“subsystem”:“SpyNode”}

{“level”:“info”,“ts”:1618058473.688501,“caller”:“spynoded/main.go:182”,“msg”:“New header (673469) : 000000000000000007281694c88424f4e1285f6d7cbc9f9e591db00554c8eab6”}

{“level”:“verbose”,“ts”:1618058473.688611,“caller”:“spynode/blocks.go:260”,“msg”:“Processing block 673469 (1004 tx) : 000000000000000007281694c88424f4e1285f6d7cbc9f9e591db00554c8eab6”,“subsystem”:“SpyNode”}

{“level”:“verbose”,“ts”:1618058473.712974,“caller”:“handlers/block.go:51”,“msg”:“Received block : 00000000000000000b4992260c43cf7bd6df01647956463e5e71b59ae52edb1f”,“subsystem”:“SpyNode”}

{“level”:“info”,“ts”:1618058473.740673,“caller”:“spynode/transactions.go:234”,“msg”:“Contract found : b1d5e3d3ea3143399a036e229a799e8c3cff1ba0beabd2cf4752deb45dcab538”,“subsystem”:“SpyNode”}

{“level”:“verbose”,“ts”:1618058473.754751,“caller”:“handlers/block.go:51”,“msg”:“Received block : 000000000000000003008d80a70b1bfe1dc41e5e11ab9fe71a834d6a0abede1c”,“subsystem”:“SpyNode”}

{“level”:“info”,“ts”:1618058496.550655,“caller”:“spynode/blocks.go:385”,“msg”:“Processed block : 000000000000000007281694c88424f4e1285f6d7cbc9f9e591db00554c8eab6 : 22907.146 ms”,“subsystem”:“SpyNode”}

{“level”:“warn”,“ts”:1618058496.550682,“caller”:“spynode/blocks.go:72”,“msg”:“Failed to process block : 000000000000000007281694c88424f4e1285f6d7cbc9f9e591db00554c8eab6 : fetch outputs: fetch outputs: 2c11ec93f381a6ef4ae374b725ec24e8cb552a0482f337b9f4712f823c4664c4: status code: 401, response: “””,“subsystem”:“SpyNode”}

{“level”:“verbose”,“ts”:1618058496.550699,“caller”:“spynode/node.go:370”,“msg”:“Process blocks finished”,“subsystem”:“SpyNode”}

^C{“level”:“info”,“ts”:1618060276.911633,“caller”:“spynoded/main.go:162”,“msg”:“Start shutdown…”}

Gets Error 401 on
Block #673469
000000000000000007281694c88424f4e1285f6d7cbc9f9e591db00554c8eab6
(#673469)
Timestamp (utc) 2021-02-08 02:21:18
Transactions 1,004
Total Fees 0.00726873 BSV
Average Fee 0.00000724 BSV
Size 1,679,543 bytes
Confirmations 8,858

That 401 error is from your bitcoind instance and means “unauthorized”. Make sure you have these environment variables set correctly.

export RPC_HOST=
export RPC_USERNAME=
export RPC_PASSWORD=