Otserver

From Open Transactions
Jump to: navigation, search

After you make install, the OT Server will be named otserver and most likely will be located in /usr/local/bin

You should first copy the sample data from the sample data folder, which includes pre-created server and client data, allowing you to instantly get OT up and running without having to create anything. Just copy the contents Open-Transactions/sample-data/ot-sample-data/server_data/* and Open-Transactions/sample-data/ot-sample-data/client_data/*, respectively, into ~/.ot/server_data and ~/.ot/client_data

You can then probably run it simply by typing: otserver


If you run it with blank data, it will walk you through the process of creating a fresh server. You will want to make use of the sample contracts in the sample-data folder for this process.

OT creates the ~/.ot folder, including the server's folder: ~/.ot/server_data (That is where the otserver will normally look, by default, to load its data.)

The main datafile is: ~/.ot/server_data/notaryServer.xml

When you first start playing with OT, be sure to keep an eye on the server output while you are running your client, so you can see what is happening on the server side.


See the include/otserver/OTServer.h and src/otserver/OTServer.cpp files for the bulk of the server code.


See also: