1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Add NodeTypeNamingNode and NodeTypePaymentProcessingNode to nodeconf

This commit is contained in:
Anton Akentev 2023-11-01 12:42:03 +00:00
parent 1b018a287e
commit fe8cba6225
6 changed files with 237 additions and 46 deletions

View file

@ -3,6 +3,9 @@ package commonspace
import (
"context"
"fmt"
"testing"
"time"
accountService "github.com/anyproto/any-sync/accountservice"
"github.com/anyproto/any-sync/app"
"github.com/anyproto/any-sync/app/ocache"
@ -22,8 +25,6 @@ import (
"github.com/anyproto/any-sync/testutil/accounttest"
"github.com/anyproto/go-chash"
"github.com/stretchr/testify/require"
"testing"
"time"
)
//
@ -103,6 +104,14 @@ func (m *mockConf) CoordinatorPeers() []string {
return nil
}
func (m *mockConf) NamingNodePeers() []string {
return nil
}
func (m *mockConf) PaymentProcessingNodePeers() []string {
return nil
}
func (m *mockConf) PeerAddresses(peerId string) (addrs []string, ok bool) {
if peerId == m.configuration.Nodes[0].PeerId {
return m.configuration.Nodes[0].Addresses, true