congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
StoreBuilder.buildPeerStore
Code IndexAdd Tabnine to your IDE (free)

How to use
buildPeerStore
method
in
io.yggdrash.core.store.StoreBuilder

Best Java code snippets using io.yggdrash.core.store.StoreBuilder.buildPeerStore (Showing top 3 results out of 315)

origin: yggdrash/yggdrash

  public static PeerTable createPeerTable(int port) {
    Peer owner = Peer.valueOf(NODE_URI_PREFIX + port);
    PeerTable peerTable = new KademliaPeerTable(owner, storeBuilder.buildPeerStore());
    List<String> seedList = Collections.singletonList(NODE_URI_PREFIX + 32918);
    peerTable.setSeedPeerList(seedList);
    return peerTable;
  }
}
origin: yggdrash/yggdrash

@Bean
PeerTable peerTable(Wallet wallet, StoreBuilder storeBuilder) {
  Peer owner = Peer.valueOf(wallet.getNodeId(), nodeProperties.getGrpc().getHost(),
      nodeProperties.getGrpc().getPort());
  PeerStore peerStore = storeBuilder.buildPeerStore();
  PeerTable peerTable = new KademliaPeerTable(owner, peerStore);
  peerTable.setSeedPeerList(nodeProperties.getSeedPeerList());
  return peerTable;
}
origin: yggdrash/yggdrash

  @Test
  public void buildPeerStore() {
    Peer peer = Peer.valueOf("ynode://75bff16c@127.0.0.1:32918");
    PeerStore store = builder.buildPeerStore();
    store.put(peer.getPeerId(), peer);
    assert store.contains(peer.getPeerId());
    assert store.get(peer.getPeerId()).equals(peer);
  }
}
io.yggdrash.core.storeStoreBuilderbuildPeerStore

Popular methods of StoreBuilder

  • <init>
  • buildBlockStore
  • buildMetaStore
  • buildTxStore
  • buildStateStore
  • buildTransactionReciptStore
  • getConfig
  • getDbSource

Popular in Java

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • requestLocationUpdates (LocationManager)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now