try to see more of what happens in travis
@@ -2,6 +2,7 @@ package p2p
import (
"encoding/json"
+ "fmt"
"github.com/spacemeshos/go-spacemesh/filesystem"
"github.com/spacemeshos/go-spacemesh/log"
"github.com/spacemeshos/go-spacemesh/p2p/nodeconfig"
@@ -81,6 +82,8 @@ func (n *localNodeImp) persistData() error {
// Read node persisted data based on node id.
func readNodeData(nodeID string) (*NodeData, error) {
+ fmt.Println("READING ", nodeID)
+
path, err := getDataFilePath(nodeID)
if err != nil {
return nil, err
@@ -115,6 +118,10 @@ func readFirstNodeData() (*NodeData, error) {
return nil, err
}
+ for _, f := range files {
+ log.Error(f.Name())
+ }
+
// only consider json files
for _, f := range files {
if f.IsDir() && !strings.HasPrefix(f.Name(), ".") {
