Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bsa_miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nazarf
bsa_miner
Commits
a5189d4c
Commit
a5189d4c
authored
Mar 16, 2023
by
nazarf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change password to pass
parent
0a6218fc
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
18 deletions
+36
-18
workspace.xml
.idea/workspace.xml
+28
-10
miners_controller.rb
app/controllers/miners_controller.rb
+1
-1
_form.html.haml
app/views/miners/_form.html.haml
+2
-2
20230312235403_create_miners.rb
db/migrate/20230312235403_create_miners.rb
+2
-2
schema.rb
db/schema.rb
+2
-2
seeds.rb
db/seeds.rb
+1
-1
No files found.
.idea/workspace.xml
View file @
a5189d4c
...
@@ -4,10 +4,12 @@
...
@@ -4,10 +4,12 @@
<option
name=
"autoReloadType"
value=
"SELECTIVE"
/>
<option
name=
"autoReloadType"
value=
"SELECTIVE"
/>
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9714672e-a423-436e-a8d6-e25573fece52"
name=
"Changes"
comment=
"set and check miner status"
>
<list
default=
"true"
id=
"9714672e-a423-436e-a8d6-e25573fece52"
name=
"Changes"
comment=
"change path to get and update miners"
>
<change
beforePath=
"$PROJECT_DIR$/.ruby-version"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.ruby-version"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/controllers/miners_controller.rb"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/controllers/miners_controller.rb"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/controllers/front_controller.rb"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/controllers/front_controller.rb"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/app/views/miners/_form.html.haml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/app/views/miners/_form.html.haml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/config/routes.rb"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/config/routes.rb"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/db/migrate/20230312235403_create_miners.rb"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/db/migrate/20230312235403_create_miners.rb"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/db/schema.rb"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/db/schema.rb"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/db/seeds.rb"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/db/seeds.rb"
afterDir=
"false"
/>
</list>
</list>
<list
id=
"e4be6035-6aaa-4f44-85ea-6a3713a8155a"
name=
".idea"
comment=
""
/>
<list
id=
"e4be6035-6aaa-4f44-85ea-6a3713a8155a"
name=
".idea"
comment=
""
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -59,7 +61,7 @@
...
@@ -59,7 +61,7 @@
<command
value=
"rake db:seed"
/>
<command
value=
"rake db:seed"
/>
</option>
</option>
</component>
</component>
<component
name=
"RunManager"
selected=
"Ra
ils.dev_start
"
>
<component
name=
"RunManager"
selected=
"Ra
ke.db:seed: base_site
"
>
<configuration
name=
"dev_start"
type=
"RailsRunConfigurationType"
factoryName=
"Rails"
>
<configuration
name=
"dev_start"
type=
"RailsRunConfigurationType"
factoryName=
"Rails"
>
<module
name=
"base_site"
/>
<module
name=
"base_site"
/>
<predefined_log_file
enabled=
"true"
id=
"RUBY_RAILS_SERVER"
/>
<predefined_log_file
enabled=
"true"
id=
"RUBY_RAILS_SERVER"
/>
...
@@ -231,7 +233,7 @@
...
@@ -231,7 +233,7 @@
<workItem
from=
"1678925183855"
duration=
"109000"
/>
<workItem
from=
"1678925183855"
duration=
"109000"
/>
<workItem
from=
"1678925900403"
duration=
"62000"
/>
<workItem
from=
"1678925900403"
duration=
"62000"
/>
<workItem
from=
"1678926670884"
duration=
"178000"
/>
<workItem
from=
"1678926670884"
duration=
"178000"
/>
<workItem
from=
"1678962814930"
duration=
"
1440
000"
/>
<workItem
from=
"1678962814930"
duration=
"
2322
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"set and check miner status"
>
<task
id=
"LOCAL-00001"
summary=
"set and check miner status"
>
<created>
1678921173455
</created>
<created>
1678921173455
</created>
...
@@ -240,7 +242,21 @@
...
@@ -240,7 +242,21 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1678921173455
</updated>
<updated>
1678921173455
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"2"
/>
<task
id=
"LOCAL-00002"
summary=
"change ruby version and configuration"
>
<created>
1678964280692
</created>
<option
name=
"number"
value=
"00002"
/>
<option
name=
"presentableId"
value=
"LOCAL-00002"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1678964280692
</updated>
</task>
<task
id=
"LOCAL-00003"
summary=
"change path to get and update miners"
>
<created>
1678964310809
</created>
<option
name=
"number"
value=
"00003"
/>
<option
name=
"presentableId"
value=
"LOCAL-00003"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1678964310809
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"4"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -248,14 +264,16 @@
...
@@ -248,14 +264,16 @@
</component>
</component>
<component
name=
"VcsManagerConfiguration"
>
<component
name=
"VcsManagerConfiguration"
>
<MESSAGE
value=
"set and check miner status"
/>
<MESSAGE
value=
"set and check miner status"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"set and check miner status"
/>
<MESSAGE
value=
"change ruby version and configuration"
/>
<MESSAGE
value=
"change path to get and update miners"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"change path to get and update miners"
/>
</component>
</component>
<component
name=
"com.intellij.coverage.CoverageDataManagerImpl"
>
<component
name=
"com.intellij.coverage.CoverageDataManagerImpl"
>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_seed__base_site.rcov"
NAME=
"db:seed: base_site Coverage Results"
MODIFIED=
"1678666605094"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@dev_start.rcov"
NAME=
"dev_start Coverage Results"
MODIFIED=
"1678962978496"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@dev_start.rcov"
NAME=
"dev_start Coverage Results"
MODIFIED=
"1678962978496"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_seed__base_site.rcov"
NAME=
"db:seed: base_site Coverage Results"
MODIFIED=
"1678964902879"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_rollback__base_site.rcov"
NAME=
"db:rollback: base_site Coverage Results"
MODIFIED=
"1678666388851"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_rollback__base_site.rcov"
NAME=
"db:rollback: base_site Coverage Results"
MODIFIED=
"1678666388851"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@Unnamed.rcov"
NAME=
"dev_start Coverage Results"
MODIFIED=
"1678666751300"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@Unnamed.rcov"
NAME=
"dev_start Coverage Results"
MODIFIED=
"1678666751300"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_migrate__base_site.rcov"
NAME=
"db:migrate: base_site Coverage Results"
MODIFIED=
"1678
666547095
"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_migrate__base_site.rcov"
NAME=
"db:migrate: base_site Coverage Results"
MODIFIED=
"1678
964855863
"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_create__base_site.rcov"
NAME=
"db:create: base_site Coverage Results"
MODIFIED=
"1678665112902"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
<SUITE
FILE_PATH=
"coverage/bsa_miner@db_create__base_site.rcov"
NAME=
"db:create: base_site Coverage Results"
MODIFIED=
"1678665112902"
SOURCE_PROVIDER=
"com.intellij.coverage.DefaultCoverageFileProvider"
RUNNER=
"rcov"
COVERAGE_BY_TEST_ENABLED=
"true"
COVERAGE_TRACING_ENABLED=
"false"
WORKING_DIRECTORY=
"$PROJECT_DIR$"
MODULE_NAME=
"base_site"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
app/controllers/miners_controller.rb
View file @
a5189d4c
...
@@ -71,6 +71,6 @@ class MinersController < AdminController
...
@@ -71,6 +71,6 @@ class MinersController < AdminController
# Never trust parameters from the scary internet, only allow the white list through.
# Never trust parameters from the scary internet, only allow the white list through.
def
miner_params
def
miner_params
params
.
require
(
:miner
).
permit
(
:name
,
:status
,
:ip_address
,
:port
,
:wallet_address
,
:pass
word
,
:algorithm
,
:ip_address_2
,
:port_2
,
:wallet_address_2
,
:password
_2
,
:algorithm_2
,
:hash_rate
,
:last_activity
)
params
.
require
(
:miner
).
permit
(
:name
,
:status
,
:ip_address
,
:port
,
:wallet_address
,
:pass
,
:algorithm
,
:ip_address_2
,
:port_2
,
:wallet_address_2
,
:pass
_2
,
:algorithm_2
,
:hash_rate
,
:last_activity
)
end
end
end
end
app/views/miners/_form.html.haml
View file @
a5189d4c
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
=
f
.
input
:ip_address
=
f
.
input
:ip_address
=
f
.
input
:port
=
f
.
input
:port
=
f
.
input
:wallet_address
=
f
.
input
:wallet_address
=
f
.
input
:pass
word
=
f
.
input
:pass
=
f
.
input
:algorithm
=
f
.
input
:algorithm
=
f
.
input
:ip_address_2
=
f
.
input
:ip_address_2
=
f
.
input
:port_2
=
f
.
input
:port_2
=
f
.
input
:wallet_address_2
=
f
.
input
:wallet_address_2
=
f
.
input
:pass
word
_2
=
f
.
input
:pass_2
=
f
.
input
:algorithm_2
=
f
.
input
:algorithm_2
...
...
db/migrate/20230312235403_create_miners.rb
View file @
a5189d4c
...
@@ -6,12 +6,12 @@ class CreateMiners < ActiveRecord::Migration
...
@@ -6,12 +6,12 @@ class CreateMiners < ActiveRecord::Migration
t
.
string
:ip_address
t
.
string
:ip_address
t
.
string
:port
t
.
string
:port
t
.
string
:wallet_address
t
.
string
:wallet_address
t
.
string
:pass
word
t
.
string
:pass
t
.
string
:algorithm
t
.
string
:algorithm
t
.
string
:ip_address_2
t
.
string
:ip_address_2
t
.
string
:port_2
t
.
string
:port_2
t
.
string
:wallet_address_2
t
.
string
:wallet_address_2
t
.
string
:pass
word
_2
t
.
string
:pass_2
t
.
string
:algorithm_2
t
.
string
:algorithm_2
t
.
string
:hash_rate
t
.
string
:hash_rate
t
.
datetime
:last_activity
t
.
datetime
:last_activity
...
...
db/schema.rb
View file @
a5189d4c
...
@@ -100,12 +100,12 @@ ActiveRecord::Schema.define(version: 20230312235403) do
...
@@ -100,12 +100,12 @@ ActiveRecord::Schema.define(version: 20230312235403) do
t
.
string
"ip_address"
,
limit:
255
t
.
string
"ip_address"
,
limit:
255
t
.
string
"port"
,
limit:
255
t
.
string
"port"
,
limit:
255
t
.
string
"wallet_address"
,
limit:
255
t
.
string
"wallet_address"
,
limit:
255
t
.
string
"pass
word"
,
limit:
255
t
.
string
"pass
"
,
limit:
255
t
.
string
"algorithm"
,
limit:
255
t
.
string
"algorithm"
,
limit:
255
t
.
string
"ip_address_2"
,
limit:
255
t
.
string
"ip_address_2"
,
limit:
255
t
.
string
"port_2"
,
limit:
255
t
.
string
"port_2"
,
limit:
255
t
.
string
"wallet_address_2"
,
limit:
255
t
.
string
"wallet_address_2"
,
limit:
255
t
.
string
"pass
word_2"
,
limit:
255
t
.
string
"pass
_2"
,
limit:
255
t
.
string
"algorithm_2"
,
limit:
255
t
.
string
"algorithm_2"
,
limit:
255
t
.
string
"hash_rate"
,
limit:
255
t
.
string
"hash_rate"
,
limit:
255
t
.
datetime
"last_activity"
t
.
datetime
"last_activity"
...
...
db/seeds.rb
View file @
a5189d4c
...
@@ -149,4 +149,4 @@ Setting.delete_all
...
@@ -149,4 +149,4 @@ Setting.delete_all
Miner
.
delete_all
Miner
.
delete_all
Miner
.
create
name:
"bsa1"
,
ip_address:
"149.28.218.119"
,
port:
"4028"
,
Miner
.
create
name:
"bsa1"
,
ip_address:
"149.28.218.119"
,
port:
"4028"
,
wallet_address:
"439JLdAVDN1ao9fp9VUQNZHL84HrBpcXbEXQSZxyToDQjXsmEyDsqV9YZj1iuUbjLwLUTxuhwfhD53MUCeRzv59C6hDexR1"
,
wallet_address:
"439JLdAVDN1ao9fp9VUQNZHL84HrBpcXbEXQSZxyToDQjXsmEyDsqV9YZj1iuUbjLwLUTxuhwfhD53MUCeRzv59C6hDexR1"
,
password:
"bsa1"
,
algorithm:
"randomx"
pass:
"bsa1"
,
algorithm:
"randomx"
\ No newline at end of file
\ No newline at end of file
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