Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
ec27e664
Commit
ec27e664
authored
Jun 09, 2017
by
Dan Gershony
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove version on the api and add stratis testent to the Breeze drop down
parent
9efd15c0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
20 deletions
+4
-20
recover.component.html
Breeze.UI/src/app/setup/recover/recover.component.html
+1
-0
api.service.ts
Breeze.UI/src/app/shared/services/api.service.ts
+2
-2
Startup.cs
Breeze/src/Breeze.Api/Startup.cs
+0
-14
LightWalletSyncManager.cs
Breeze/src/Breeze.Wallet/LightWalletSyncManager.cs
+1
-4
No files found.
Breeze.UI/src/app/setup/recover/recover.component.html
View file @
ec27e664
...
...
@@ -32,6 +32,7 @@
<select
name=
"network"
formControlName=
"selectNetwork"
>
<!--<option value="main">Main</option>-->
<option
value=
"test"
>
Testnet
</option>
<option
value=
"stratistest"
>
StratisTest
</option>
</select>
</div>
<div
class=
"form-group"
>
...
...
Breeze.UI/src/app/shared/services/api.service.ts
View file @
ec27e664
...
...
@@ -20,8 +20,8 @@ import { TransactionSending } from '../classes/transaction-sending';
export
class
ApiService
{
constructor
(
private
http
:
Http
)
{};
private
mockApiUrl
=
'http://localhost:3000/api
/v1
'
;
private
webApiUrl
=
'http://localhost:5000/api
/v1
'
;
private
mockApiUrl
=
'http://localhost:3000/api'
;
private
webApiUrl
=
'http://localhost:5000/api'
;
private
headers
=
new
Headers
({
'Content-Type'
:
'application/json'
});
/**
...
...
Breeze/src/Breeze.Api/Startup.cs
View file @
ec27e664
...
...
@@ -66,20 +66,6 @@ namespace Breeze.Api
{
setup
.
SwaggerDoc
(
"v1"
,
new
Info
{
Title
=
"Breeze.Api"
,
Version
=
"v1"
});
// FIXME: prepopulates the version in the URL of the Swagger UI found at http://localhost:5000/swagger
// temporary needed until Swashbuckle supports it out-of-the-box
setup
.
DocInclusionPredicate
((
version
,
apiDescription
)
=>
{
apiDescription
.
RelativePath
=
apiDescription
.
RelativePath
.
Replace
(
"v{version}"
,
version
);
var
versionParameter
=
apiDescription
.
ParameterDescriptions
.
SingleOrDefault
(
p
=>
p
.
Name
==
"version"
);
if
(
versionParameter
!=
null
)
{
apiDescription
.
ParameterDescriptions
.
Remove
(
versionParameter
);
}
return
true
;
});
//Set the comments path for the swagger json and ui.
var
basePath
=
PlatformServices
.
Default
.
Application
.
ApplicationBasePath
;
var
apiXmlPath
=
Path
.
Combine
(
basePath
,
"Breeze.Api.xml"
);
...
...
Breeze/src/Breeze.Wallet/LightWalletSyncManager.cs
View file @
ec27e664
...
...
@@ -105,10 +105,7 @@ namespace Breeze.Wallet
public
void
ProcessBlock
(
Block
block
)
{
var
hash
=
block
.
Header
.
GetHash
();
var
height
=
this
.
chain
.
GetBlock
(
hash
).
Height
;
this
.
walletManager
.
ProcessBlock
(
height
,
block
);
this
.
walletManager
.
ProcessBlock
(
block
);
}
public
void
ProcessTransaction
(
Transaction
transaction
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment