创建创世区块时发生的问题
interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {}
panic: interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {} [recovered]
panic: interface conversion: interface {} is map[interface {}]interface {}, not map[string]interface {}
是否是文件configtx。yaml中有代码打印错误
当您尝试将 type 的值分配给 typemap[interface {}]interface {}的变量时,会发生此错误map[string]interface {}。换句话说,您正在尝试将具有 type 键的映射分配给具有 type 键interface{}的映射string。
要修复此错误,您需要确保在声明和分配变量时使用正确的类型。在这种情况下,您需要确保在将值分配给预期为具有字符串键的映射的变量时,您使用的是具有字符串键的映射。
如果您不确定为什么会出现此错误,那么查看导致恐慌的代码并查看是否可以识别您使用错误类型的任何地方可能会有所帮助。