Closed nightfallsad closed 5 years ago
Hi @nightfallsad, good catch! That's definitely a bug, can I see what the rest of the error said? I also can't reproduce it, do you have any more information, like your OS, and which database you're using (mariadb vs mysql etc.)?
Hi @Rjected ,I changed the code 'depositAddrStoreSchema = "pubkey VARBINARY(66), address VARCHAR(34), CONSTRAINT unique_pubkeys UNIQUE (pubkeys, address)' to 'depositAddrStoreSchema = "pubkey VARBINARY(66), address VARCHAR(34), CONSTRAINT unique_pubkeys UNIQUE (pubkey, address)'.The problem was resolved. (pubkeys, address) -> (pubkey, address)
When I run 'go build ./cmd/opencxd/...' and executed './opencxd',it threw an error . I think its because this code is incorrect,the two 'pubkey' isn't match. 'depositAddrStoreSchema = "pubkey VARBINARY(66), address VARCHAR(34), CONSTRAINT unique_pubkeys UNIQUE (pubkeys, address)"'