Hot answers tagged

15

As you can see from the developer documentation, SDF does serve both Horizon instances through HTTPS. When they say "RESTful HTTP API" it's to signal to developers that they use standard web technologies.


12

Yes, Docker provides a simple way to incorporate stellar-core and horizon into your infrastructure so long as BUCKET_DIR_PATH, TMP_DIR_PATH, and the database are stored on persistent volumes. First, decide whether you want your container to be part of the public, production Stellar network (referred to as the pubnet) or the test network (called testnet) ...


8

Start the performance troubleshooting from pinpointing a bottleneck. During the test execution run top to get the list of the top resource consuming processes. There are 4 possible options: Your load testing app consumes 100% of CPU. Run the test loader app on a separate machine connected to the same local network to test Steall performance instead of test ...


7

Yes it is possible. You could use the official docker image provided by Stellar as starting point. Github source here


7

TL;DR: only expose port 11625 on stellar-core. Stellar Core Port 11625 Port 11625 of stellar-core must be exposed outside your network to allow it to communicate with peers. The stellar-core configuration file has a KNOWN_PEERS field which specifies the IPs and domains that your stellar-core node will try to connect to. This is how your node will register ...


6

Okay. So found the solution with help of @Bartek Nowotarski. My local horizon didn't have SSL certificate. So I had to either add SSL to the horizon Use it without SSL: var server = new StellarSdk.Server('http://127.0.0.1:8000', {allowHttp: true}); Not sure why this was not documented anywhere.


6

I think I had run into the same issue, as Stellar Core by default uses a "fast-sync" mode (instead of "full-sync"). In terms of architecture, Horizon just takes the data stored at Core's DB, i.e. data that Core has processed. **It may be your Core did not process the record before ledger#400000, or at least your Core's DB does not possess the relevant ...


6

Using the payments by account endpoint of Horizon we can see that the from account has since been merged into GCXELXZUHZEZFT5E63P2R2HMXJ3MPPIVR3TI2MDBP244ECRBQEFBVKCG. { "_links": { "self": { "href": "https://horizon.stellar.org/operations/81346985528979457" }, "transaction": { "href": "https://horizon.stellar.org/...


6

This is as per design. Operations are executed in order as one ACID transaction, meaning that either all operations are applied or none are. If any operation fails, the whole transaction fails. https://www.stellar.org/developers/guides/concepts/transactions.html#list-of-operations


5

Edit your stellar-core config (/yourpath/core/etc/stellar-core.cfg) Remove CATCHUP_RECENT=X Add CATCHUP_COMPLETE=true Horizon will store the entire history as well.


5

I hadn't run any benchmarks myself, but you can estimate the performance based on the few parameters. Cryptography Cryptography is the most CPU-consumptional part of SDK. Stellar JS SDK depends on Ed25519, SHA and CRC. And Ed25519 is the main concern, because the key derivation and signing are implemented on Ed25519 elliptic curves. If you open stellar-base ...


5

You are making too many Horizon requests, consider rewriting code that polls Horizon. Setup a queue or use caching for Horizon data. Horizon rate-limiting behavior is described here. In order to provide service stability, Horizon limits the number of requests a client can perform within a one hour window. By default this is set to 3600 requests per hour—...


5

A shared db definitely makes a lot of sense for most production deployments, if you have access to RDS then it has some very convenient features, it takes care of backups, offers point in time recovery and if using HA you get a standby master too... As well as using shared databases, you will want to run your Horizon and Core deployments on multiple servers ...


5

This is a bug. Nothing changed on that front, 10.0.0 happens to perform a schema upgrade the same way we've done it before. I opened https://github.com/stellar/stellar-core/issues/1791 with a workaround that should get you back in business. If you could add some details to that issue with details that could help pinpoint the root cause, it would be great. ...


4

I created a few docker images for stellar including one with core and horizon. https://github.com/StellarKit


4

For a single node / testing and development context there is also this image: https://github.com/zulucrypto/docker-stellar-integration-test-network


4

It looks like you are trying to create a circular trustline, sourceAccount and issuer are the same. A trustline can only be established from one account to another. Try creating one more account and set up the trustline between them.


4

When I pasted the decimal you posted into the stellar transaction builder I got the following error: "Amount can only support a precision of 7 decimals." Perhaps whatever method it uses to encode decimals does not support that level of precision and fails spectacularly (underflow, overflow?). https://www.stellar.org/laboratory/#txbuilder?params=...


4

You can say the transaction makes it into the ledger because the operations in the transaction are themselves balanced. The main confusion is the example is transferring the amounts within itself. If you start with 100 Apples in the account, then send 10,000,000 Apples (-10,000,000) to the account, and receive 10,000,000 Apples (+10,000,000) from the ...


4

To create a new account you issue a transaction with the CreateAccount operation. It's very similar to a Payment operation, but has the side-effect of creating a new account. This is essentially what friendbot is doing. You can test this approach on testnet via the laboratory. Generate an account (but don't use friendbot to fund it). Create a new ...


4

Stellar does not support expiring offers. Time locks only specify the time window when a Stellar transaction is eligible to be submitted to the network but not it's validity. Therefore, sending a cancel offer operation after the expiration time is currently the only way of achieving what you want.


4

Well, with your setup TPS rate depends on your private network configuration. First of all, check maximum transactions per ledger parameter. If you have local Horizon node up and running, just navigate to https://horizon.stellar.org/ledgers/?order=desc&limit=1 (use your Horizon address instead of horizon.stellar.org). Locate the max_tx_set_size ...


4

That's a broad question. How can you guarantee that Google Mail is not hacked? Potentially, any service can be hacked, and not necessarily on the server side. For example, DNS hijacking allows hacker to redirect DNS queries to a malicious domain name server, by overriding a computer’s TCP/IP settings. This can be achieved through the use of malicious ...


4

There is a docker product called Docker Toolbox which advertises support for older versions of windows. It requires a 64-bit version of Windows 7 or better.


4

Transactions are containers which contain operations. Operations are what you're looking for. Try hitting https://horizon-testnet.stellar.org/accounts/GBMTGMQXBXZS5XJROQQOZB7TU4ACBIXTJJEG7WTXP4ZEARPGQGDWHWIS/operations?order=desc&limit=100 instead.


4

There are HTTP commands that can be issued directly to core. For example: /tx?blob=Base64 submit a transaction to the network. See https://www.stellar.org/developers/stellar-core/software/commands.html


4

They wouldn't necessarily differ, but public_key is deprecated, most likely since we have other types of signers now, in addition to just ed25519 keys (which are public keys). https://github.com/stellar/go/blob/d121c23554421abeb33273ef74114a30c41b409e/services/horizon/internal/docs/reference/resources/account.md


4

The easiest way to get started is by using the public horizon that is hosted by stellar.org (horizon.stellar.org). Horizon is just an HTTP api that is layered on top of stellar-core (with a few extra bells and whistles) -- so you could make your http requests directly to it like the Stellar Laboratory does. However, you're probably better off using one of ...


4

The servers listed at stellarbeat.io are not stellar-horizon servers but stellar-core nodes. stellar-core: handling p2p network communication with a binary protocol don't have a public http(s) interface (optionally) validating transaction data stellar-horizon: handling client communication via http gets its data from a stellar-core I guess nobody ...


4

Asset stats are disabled by default, you can enable them with ENABLE_ASSET_STATS=true.


Only top voted, non community-wiki answers of a minimum length are eligible