Otserver

From Open Transactions
Revision as of 04:26, 8 June 2013 by Unknown user (talk) (Created page with "After you @make [email protected], the OT Server will be named @[email protected] and most likely will be located in @/usr/local/[email protected] You can probably run it simply by typing: @[email protected] If ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

After you @make [email protected], the OT Server will be named @[email protected] and most likely will be located in @/usr/local/[email protected]

You can probably run it simply by typing: @[email protected]

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.

You can also copy 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 sample data folders for server_data and client_data into @~/.ot/[email protected] and @~/.ot/[email protected]



@make [email protected] creates the @~/[email protected] folder, including the server's folder: @~/.ot/[email protected] (That is where the otserver will look, by default, to load its data.

The main datafile is: @~/.ot/server_data/[email protected]

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: The OT Test GUI The command line test wallet The OT API and Use Cases.