radixdlt / radixdlt-core Goto Github PK
View Code? Open in Web Editor NEWRadix core consensus and networking layer
License: Apache License 2.0
Radix core consensus and networking layer
License: Apache License 2.0
pc@linux-a7b0:~/workarea/radix/my-radixexample/radixdlt-core> ./gradlew deb4docker
<-------------> 0% CONFIGURING [2s]
> root project > Resolve dependencies of detachedConfiguration3 > me.champeau.gradle.jmh.gradle.plugin-0.5.1.> root project > Resolve dependencies of detachedConfiguration3 > me.champeau.gradle.jmh.gradle.plugi
> Task :faucet-service:versionFile
Base tags : []
> Task :radixdlt:versionFile
Base tags : []
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings
pc@linux-a7b0:~/workarea/radix/my-radixexample/radixdlt-core> sudo docker-compose -f docker/single-node.yml up --build
[sudo] password for root:
WARNING: The RADIXDLT_UNIVERSE variable is not set. Defaulting to a blank string.
WARNING: The RADIXDLT_UNIVERSE_TOKEN variable is not set. Defaulting to a blank string.
WARNING: The RADIXDLT_UNIVERSE_PRIVKEY variable is not set. Defaulting to a blank string.
Creating network "docker_single_node" with the default driver
[...docker build stuff...]
faucet_1 | wget: can't connect to remote host (172.18.0.2): Connection refused
core_1 | # 2020-11-22T08:49:19,944 [FATAL/Radix/main] (Radix.java:120) - Unable to start
core_1 | com.google.inject.ProvisionException: Unable to provision, see the following errors:
core_1 |
core_1 | 1) Error in custom provider, java.lang.IllegalStateException: Error while deserialising universe
core_1 | at com.radixdlt.CheckpointModule.universe(Unknown Source)
core_1 | while locating com.radixdlt.universe.Universe
core_1 | for the 2nd parameter of com.radixdlt.network.transport.udp.UDPTransportModule.natHandlerProvider(Unknown Source)
core_1 | at com.radixdlt.network.transport.udp.UDPTransportModule.natHandlerProvider(Unknown Source)
core_1 | while locating com.radixdlt.network.transport.udp.NatHandler
core_1 | for the 5th parameter of com.radixdlt.network.transport.udp.NettyUDPTransportImpl.<init>(Unknown Source)
core_1 | while locating com.radixdlt.network.transport.udp.NettyUDPTransportImpl
core_1 | while locating com.radixdlt.network.transport.Transport annotated with @com.google.inject.internal.Element(setName=,uniqueId=11, type=MULTIBINDER, keyType=)
[...long stacktrace...]
Attaching to docker_faucet_1, docker_core_1
faucet_1 | Waiting for http://core:8080 to become ready ...
faucet_1 | wget: can't connect to remote host (172.18.0.2): Connection refused
core_1 | + find /usr -type f -name java -exec setfattr -n user.pax.flags -v em {} ;
core_1 | + env
core_1 | + sort
core_1 | HOME=/root
core_1 | HOSTNAME=fb561b744e25
faucet_1 | wget: bad address 'core:8080'
faucet_1 | wget: bad address 'core:8080'
faucet_1 | wget: bad address 'core:8080'
faucet_1 | wget: bad address 'core:8080'
I keep getting the following error when trying to launch a node with docker-compose -f docker/single-node.yml up --build
:
Building core Step 1/11 : FROM eu.gcr.io/lunar-arc-236318/base-core ERROR: Service 'core' failed to build: unauthorized: You don't have the needed permissions to perform this operation, and you may have invalid credentials. To authenticate your request, follow the steps in: https://cloud.google.com/container-registry/docs/advanced-authentication
Any advice on how to fix this?
The current implementation in CommittedAtomsStore.getCommittedAtoms uses an approach that first pulls all committed atom ids and then fetches them by repeatedly fetching individual LedgerEntry. This results in repeatedly opening a new cursor. It is more efficient to address this by scrolling a single cursor. Architecturally, this could be done in one of two ways:
As the LedgerEntryStoreView already has a precedent of returning LedgerEntry (no new imports), I feel it makes the most sense to add the new method getNextCommittedLedgerEntries, in the spirit of the existing method getNextCommitted, but returning LedgerEntry rather than AtomID. (Is it just me or is anyone else blah on AID plural being AIDs?)
I have a PR that implements this new method along with a new integration test that ensures the correct functionality that I will be attaching shortly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.