bcblocks undefined type Blockchain has no field or method blocks
This error message indicates that the type *Blockchain does not have a field or method named blocks. It is possible that the Blockchain struct does not have a field named blocks or that the blocks field is not accessible from outside the struct.
To resolve this error, you should check the definition of the Blockchain struct and make sure that it has a blocks field, and that the field is accessible from outside the struct. You may also want to check the spelling and capitalization of the field name to ensure that it matches the code where the error occurs.
原文地址: https://www.cveoy.top/t/topic/4vL 著作权归作者所有。请勿转载和采集!