Skip to content
Snippets Groups Projects
Commit e23be2c3 authored by Xavier Perret's avatar Xavier Perret
Browse files

bim

parent abde012d
No related branches found
No related tags found
No related merge requests found
......@@ -23,26 +23,22 @@ it to neighbours instead on manually entering an ip.
### Server
#### Root Server
To lauch the server to which you wish to send commands using the client you need to do
```bash
go server.go --config=neighbor-x.yaml --root
```
#### Normal Server
To launch the other server you need to run the following command:
```bash
go server.go --config=neighbor-x.yaml
```
#### Note
- It is possible to print transactions from the cli on the server
- It is possible to directly fake a transaction from the cli on the server
- All these functionalities can be triggered by the client, but fake for example will not ask the client for anything
except the id of the transaction to fake
### Functionalities
- Able to create a transaction from the client and then request to root server to broadcast by wave to all the other servers
- Able to send a rate request from client to root server then broadcast by wave to all the other servers
- Able to fake a transaction on a node by using its command line
- Able to print all local transaction from any server or client on a node by using its command line
- All functionalities have been implemented and work with the current network without problems.
### Object Storage Module
......@@ -50,7 +46,8 @@ go server.go --config=neighbor-x.yaml
- Go 1.14
- Azure CLI
- Azure Storage Account configured (like <https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go>)
- Azure Storage Account configured (
like <https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-go>)
- For testing you need to change the "hepiadistributedsystems" by the storage account name
```go
azureCreds := InitAzureCredentials("hepiadistributedsystems")
......@@ -123,7 +120,8 @@ Initialize a container with the given containerName and returns it (to create/de
func InitializeBlob(blobName string, azureCreds AzureCredentials, containerName string, containerClient azblob.ContainerClient) azblob.BlockBlobClient
```
Initialize a blob/file (for upload/download) with the given blobName and returns an object to interact with it (write/read data).
Initialize a blob/file (for upload/download) with the given blobName and returns an object to interact with it (
write/read data).
```go
func ListBlobs(blob Blob)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment