Skip to content

fix required_balance_for_loan not working #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 307 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
b016cba
add console commands history
igroman787 Sep 2, 2024
2c127c4
Merge branch 'master' into dev
yungwine Sep 5, 2024
d0a2de5
fix upgrade.sh
yungwine Sep 5, 2024
2fe09d1
add warning to subscribe to @tonstatus
yungwine Sep 5, 2024
84c0fd8
add slashed warning
yungwine Sep 5, 2024
79d45ed
Merge pull request #352 from yungwine/dev
igroman787 Sep 5, 2024
b379a02
add id to vl
yungwine Sep 6, 2024
5d63651
do not create complaints that already been voted
yungwine Sep 6, 2024
a262210
Merge pull request #354 from yungwine/dev
igroman787 Sep 7, 2024
344f861
Merge pull request #355 from ton-blockchain/cli
igroman787 Sep 7, 2024
74e536b
Merge pull request #357 from ton-blockchain/dev
igroman787 Sep 9, 2024
8ac9d4b
fix cli install in single nominator mode
yungwine Sep 10, 2024
a467af5
Merge pull request #360 from yungwine/patch-1
EmelyanenkoK Sep 11, 2024
02a36df
add backups support for mtc
yungwine Sep 12, 2024
1412440
fix restore_backup
yungwine Sep 12, 2024
0987a21
fix backups
yungwine Sep 12, 2024
43e5b3e
fix backups
yungwine Sep 12, 2024
2c28d4a
rm verbosity from tar
yungwine Sep 12, 2024
bd9567d
fix backups
yungwine Sep 12, 2024
c5264a8
feat: Update install.sh to allow passing in USER arg
leonlarin Sep 13, 2024
0818be3
Merge pull request #338 from enchanted-elephant1/feature/speed-up-arc…
igroman787 Sep 14, 2024
afabd52
chown keyring in restore_backup
yungwine Sep 17, 2024
858eba2
replace ip in node config in restore_backup
yungwine Sep 17, 2024
caa91e0
refactor checking local adnl con
yungwine Sep 18, 2024
f7a5fe7
fix adnl checking
yungwine Sep 18, 2024
0f4e5ca
show only masterchain efficiency for masterchain validator
yungwine Sep 18, 2024
52c143a
fix check_ef
yungwine Sep 19, 2024
5991651
Merge pull request #364 from yungwine/backup
igroman787 Sep 23, 2024
8340f16
Merge pull request #366 from yungwine/adnl
igroman787 Sep 23, 2024
13a6933
improve backups
yungwine Sep 24, 2024
96d3d23
fix enabling THA
yungwine Sep 24, 2024
c5e0026
update THA installer script
yungwine Sep 24, 2024
bcbfa15
Merge pull request #368 from yungwine/backup
igroman787 Sep 24, 2024
8146d4e
fix buffering funciton for GetValidatorsLoad
yungwine Sep 25, 2024
dd9c30e
Merge branch 'ton-blockchain:dev' into dev
yungwine Sep 26, 2024
3b25c96
fix DownloadDump
yungwine Sep 26, 2024
75fdd96
improve WaitTransaction seqno fetching
yungwine Oct 1, 2024
c89c21a
do not repeat WithdrawFromPool on errors
yungwine Oct 1, 2024
a7d37b5
allow fines 1% of stake for not working validators
yungwine Oct 2, 2024
6ef922b
update fine warnings
yungwine Oct 2, 2024
6252a27
Merge pull request #374 from yungwine/master-complaints
igroman787 Oct 3, 2024
48c2acb
Merge pull request #373 from yungwine/wait-transaction
igroman787 Oct 3, 2024
3a37741
Merge pull request #370 from yungwine/dev
igroman787 Oct 3, 2024
d226dfd
Merge pull request #17 from yungwine/ton-http-api
yungwine Oct 3, 2024
4d899a3
Merge pull request #18 from yungwine/efficiency
yungwine Oct 3, 2024
c0db7f0
Merge pull request #19 from yungwine/dump
yungwine Oct 3, 2024
da653d8
add AlertBot
yungwine Oct 3, 2024
0b7d6f3
fix dataclass
yungwine Oct 3, 2024
1a1d069
fix alerts in db
yungwine Oct 3, 2024
3f0c559
add service_down alert
yungwine Oct 3, 2024
4d63545
fix alerts timeout
yungwine Oct 3, 2024
029acf0
fix double service_down alert
yungwine Oct 3, 2024
47a1904
Merge pull request #365 from yungwine/efficiency
igroman787 Oct 3, 2024
7b8ac88
Merge pull request #369 from yungwine/ton-http-api
igroman787 Oct 3, 2024
e005612
Merge pull request #371 from yungwine/dump
igroman787 Oct 3, 2024
1ee5e9b
update alerts text
yungwine Oct 7, 2024
02ca414
add zero_blocks_created alert
yungwine Oct 8, 2024
67d9620
Revert "update complaints validation and warnings"
yungwine Oct 8, 2024
306f7b3
fix fine warning for testnet
yungwine Oct 8, 2024
4a45167
fix typo
yungwine Oct 8, 2024
07c7a6a
Merge pull request #376 from yungwine/revert-374-master-complaints
igroman787 Oct 8, 2024
ccf17ab
Merge branch 'ton-blockchain:dev' into dev
yungwine Oct 8, 2024
165c3f2
Merge pull request #20 from yungwine/dev
yungwine Oct 8, 2024
e0bb941
add alert if validator was slashed
yungwine Oct 8, 2024
d3c456c
rm telebot dependency for alert-bot mode
yungwine Oct 9, 2024
4df15f5
fix typo
yungwine Oct 9, 2024
b2e817f
fix GetValidatorsList
yungwine Oct 9, 2024
e12f9a0
fix buffering GetValidatorsList
yungwine Oct 9, 2024
101dd9c
add constants to alerting
yungwine Oct 9, 2024
8375ed0
fix check_zero_blocks_created
yungwine Oct 9, 2024
de67b55
return git_pool_data cmd
yungwine Oct 10, 2024
09e1e81
rm 'Next alert...' from alerting message
yungwine Oct 10, 2024
a27fcec
add check_adnl_connection_failed
yungwine Oct 10, 2024
ffd8c41
round hours in zero_block_created alert
yungwine Oct 10, 2024
fdde23b
fine non-master vals that created zero blocks
yungwine Oct 11, 2024
b47ab23
add en(dis)bling alerts
yungwine Oct 14, 2024
d8d165d
Merge pull request #362 from leonlarin/feat/install-script-user-arg
igroman787 Oct 15, 2024
6fafd47
Merge pull request #378 from yungwine/shard-complaints
igroman787 Oct 15, 2024
f8aa2f3
Merge pull request #377 from yungwine/dev
igroman787 Oct 15, 2024
d73259b
Merge branch 'dev' into bot
yungwine Oct 16, 2024
aea5532
Merge pull request #21 from yungwine/bot
yungwine Oct 16, 2024
bf84a53
add test_alert cmd
yungwine Oct 17, 2024
19eca04
Merge pull request #379 from yungwine/bot
igroman787 Oct 21, 2024
a4c9fb8
bugfix
igroman787 Oct 21, 2024
ff38709
Merge branch 'ton-blockchain:dev' into dev
yungwine Oct 22, 2024
c51e00a
fix low_efficiency alert
yungwine Oct 22, 2024
59f2f37
print efficiency for non-master validators if its 0
yungwine Oct 22, 2024
f94a7dc
fix slashed_warning
yungwine Oct 24, 2024
79bf05b
update alerting thread time
yungwine Oct 24, 2024
0a0acb1
Merge pull request #380 from yungwine/bot
igroman787 Oct 24, 2024
9ff2b25
create local config on enabling tha
yungwine Oct 25, 2024
2777801
bugfix
igroman787 Oct 26, 2024
e0ead70
Merge pull request #382 from ton-blockchain/dev
igroman787 Oct 28, 2024
1441d67
increase out_of_sync and service_down alerts timeouts
yungwine Oct 29, 2024
9201a7d
fix db backup restoring
yungwine Oct 29, 2024
683329d
rm deposit_to_pool and withdraw_from_pool cmds from single-nominator
yungwine Oct 30, 2024
d4d1b46
add stake to vl
yungwine Oct 30, 2024
4cd9a31
Merge pull request #381 from yungwine/dev
igroman787 Nov 10, 2024
15d7bc4
Merge pull request #384 from yungwine/bot
igroman787 Nov 10, 2024
0fbbba9
set pip libraries version
yungwine Nov 11, 2024
e44a055
fix test_alert
yungwine Nov 11, 2024
f551af2
do not restart node on creating backups
yungwine Nov 12, 2024
5837b57
raise error if old backup
yungwine Nov 12, 2024
56ef77c
patch old backup
yungwine Nov 13, 2024
aecf58e
Merge pull request #385 from yungwine/db-backup
igroman787 Nov 15, 2024
57d84ef
Merge pull request #387 from yungwine/pip
igroman787 Nov 15, 2024
323c399
Merge pull request #388 from yungwine/bot
igroman787 Nov 15, 2024
a338a0b
Merge pull request #389 from yungwine/ux
igroman787 Nov 15, 2024
5a87df0
Merge pull request #391 from yungwine/backup
igroman787 Nov 15, 2024
875f9a2
round validator stake info in vl
yungwine Nov 18, 2024
feef0cb
add clear backup scripts
yungwine Nov 19, 2024
99a7213
update scripts name
yungwine Nov 21, 2024
5ac0501
add auto backups
yungwine Nov 21, 2024
9de0be6
remove cleanup cmd
yungwine Nov 21, 2024
b61706b
rm out_of_ser for validators
yungwine Nov 21, 2024
9861aaf
rename dir
yungwine Nov 22, 2024
5a4dd9e
update node installing scripts
yungwine Nov 27, 2024
59bfb44
Merge pull request #395 from yungwine/backup
igroman787 Nov 27, 2024
3425a5e
Merge pull request #396 from yungwine/submodules
igroman787 Nov 27, 2024
2977185
delete old auto backups
yungwine Nov 27, 2024
16cf758
support multiple node args with same name
yungwine Nov 28, 2024
e0d87d1
dont remove state-ttl for vals on updates
yungwine Nov 28, 2024
c00f8c3
add ton_dir option to create_backup.sh
yungwine Nov 28, 2024
118dd69
support multiple node args with same name
yungwine Nov 28, 2024
37593eb
dont remove state-ttl for vals on updates
yungwine Nov 28, 2024
647f34e
add add-shard to installer
yungwine Dec 2, 2024
8b916ad
add node ip to alerting
yungwine Dec 5, 2024
23f7f72
Merge branch 'dev' into bot
yungwine Dec 5, 2024
6b43862
do not send balance alert when out of sync
yungwine Dec 5, 2024
c383356
move backups to separate module
yungwine Nov 29, 2024
6a9a2c5
get keys and node config for backups from v-console
yungwine Dec 2, 2024
4f48732
remove mytoncore restart from backup, remove -y flag
yungwine Dec 4, 2024
ba1e1c3
retry auto backup if error
yungwine Dec 4, 2024
1de94e6
rm tmp backup dir
yungwine Dec 5, 2024
03c35d3
Merge pull request #394 from yungwine/cleanup
igroman787 Dec 9, 2024
529ffa6
Merge pull request #399 from yungwine/bot
igroman787 Dec 9, 2024
ef96a63
Merge pull request #400 from yungwine/auto-backup
igroman787 Dec 9, 2024
5f8f839
Revert "rm out_of_ser for validators"
yungwine Dec 10, 2024
d82c371
do not abort restore_backup if could not create backup
yungwine Dec 11, 2024
77d550a
add only-mtc and backup flags to installation
yungwine Dec 11, 2024
3523ad2
Merge branch 'auto-backup' into remote-controller
yungwine Dec 11, 2024
7073820
patch work dir on installing from backup
yungwine Dec 12, 2024
972e267
require backup in only_mtc installation mode
yungwine Dec 12, 2024
d3309fe
Merge pull request #392 from yungwine/ux
igroman787 Dec 12, 2024
5177df7
Merge pull request #401 from yungwine/auto-backup
igroman787 Dec 12, 2024
7caf031
Merge pull request #403 from ton-blockchain/dev
igroman787 Dec 12, 2024
1c9e0fe
Merge pull request #398 from yungwine/node_args
igroman787 Dec 12, 2024
2af5533
fix node install
yungwine Dec 13, 2024
33bd174
Merge pull request #404 from yungwine/fix-install
igroman787 Dec 13, 2024
7128e9c
add setting external ip if only_mtc
yungwine Dec 13, 2024
9114bb2
update restoring backup
yungwine Dec 16, 2024
e61f3b5
add --only-node flag
yungwine Dec 16, 2024
b764a2e
add onlyNode flag
yungwine Dec 18, 2024
7a88e28
add node ip address to status if node is remote
yungwine Dec 20, 2024
bbfa048
Merge pull request #24 from yungwine/fix-install
yungwine Dec 23, 2024
5aae008
add default value to mode on install
yungwine Dec 23, 2024
0f90ecd
fix installing from backup
yungwine Dec 24, 2024
6595747
fix cp in restore_backup
yungwine Dec 24, 2024
44f34b3
update update.sh
yungwine Dec 25, 2024
a7c6c02
update upgrade.sh
yungwine Dec 26, 2024
64ecaf6
add pip conf on new installations
yungwine Dec 30, 2024
2ff3588
add stake info alerting
yungwine Jan 8, 2025
68c459f
send info alerts without sound
yungwine Jan 9, 2025
128ab71
add prometheus metrics pusher
yungwine Jan 13, 2025
eee0e9d
add testnet dump downloading
yungwine Jan 16, 2025
8b080e6
add validator_validation_metrics
yungwine Jan 16, 2025
207a517
add celldb prometheus metrics
yungwine Jan 17, 2025
8dcae92
improve checking vc_up metric
yungwine Jan 20, 2025
1e3590e
add alerts on stake return
yungwine Jan 21, 2025
b7aca1c
round values in stake alerts
yungwine Jan 22, 2025
2c1a238
add voting alert
yungwine Jan 23, 2025
20637b6
fix alerts timeouts for testnet
yungwine Jan 24, 2025
af30606
update stake alert
yungwine Jan 25, 2025
a201d6d
update stake alert
yungwine Jan 25, 2025
5294f12
Merge pull request #406 from yungwine/remote-controller
igroman787 Jan 26, 2025
46bd164
Merge pull request #407 from yungwine/update
igroman787 Jan 26, 2025
a4144f0
Merge pull request #408 from yungwine/break-system-packages
igroman787 Jan 27, 2025
7018d54
Merge pull request #413 from yungwine/testnet-dump
igroman787 Jan 27, 2025
1b388e4
Merge branch 'dev' into prometheus
igroman787 Jan 27, 2025
7e2a2d5
Merge pull request #414 from yungwine/prometheus
igroman787 Jan 27, 2025
2fb8239
Merge pull request #415 from yungwine/stake-alert
igroman787 Jan 27, 2025
319a50d
Merge remote-tracking branch 'tonblkch/dev' into dev
yungwine Jan 27, 2025
342fef5
fix chown in restore_backup
yungwine Jan 27, 2025
9074f6f
abort restore_backup if no backup file
yungwine Jan 27, 2025
7528f13
rm creation of node config backup on installation
yungwine Jan 28, 2025
0340b27
skip masterchain_out_of_ser and celldb_gc_state metrics if zero values
yungwine Jan 28, 2025
2cac579
upgrade pip before install in cli mode
yungwine Jan 28, 2025
44d83f0
Merge pull request #418 from yungwine/node-backup
igroman787 Jan 30, 2025
79aa845
Merge pull request #419 from yungwine/prometheus
igroman787 Jan 30, 2025
50e79f3
Merge pull request #420 from yungwine/break-system-packages
igroman787 Jan 30, 2025
d153e6f
Improving code readability
igroman787 Jan 30, 2025
f483fc3
Merge pull request #421 from ton-blockchain/node_args
igroman787 Jan 30, 2025
ff0c64e
Merge branch 'dev' into backup
yungwine Jan 30, 2025
92b6c12
fix list_alerts
yungwine Jan 31, 2025
69f3550
make celldb_gc_state metric -1 if last_deleted_mc_state is 0
yungwine Jan 31, 2025
399b6b0
fix voting alert
yungwine Jan 31, 2025
b8086d0
Merge pull request #417 from yungwine/backup
igroman787 Feb 3, 2025
d97e401
Merge pull request #422 from yungwine/stake-alert
igroman787 Feb 3, 2025
5281abc
Merge pull request #423 from yungwine/prometheus
igroman787 Feb 3, 2025
7198ed1
add ExecStartPre = sleep 2 to new installations
yungwine Feb 4, 2025
b427c27
Merge branch 'dev' into exec-start-pre
yungwine Feb 4, 2025
44711d1
fix merge
yungwine Feb 4, 2025
3e2330f
add shard out of sync in status
yungwine Feb 4, 2025
ade0329
Merge pull request #424 from yungwine/exec-start-pre
igroman787 Feb 4, 2025
b9d2e09
update submodule
igroman787 Feb 4, 2025
eacd508
Merge branch 'master' into dev
igroman787 Feb 4, 2025
ee82cb6
Merge pull request #425 from ton-blockchain/dev
igroman787 Feb 4, 2025
305117f
fix CreateLocalConfigFile
yungwine Feb 10, 2025
22993b8
check if tha exists before enabling
yungwine Feb 10, 2025
8a46610
add skip-create-backup flag to restore_backup
yungwine Feb 6, 2025
0c398a1
update alert message format
yungwine Feb 11, 2025
e2ed02d
add welcome message
yungwine Feb 11, 2025
1f18ee2
fix changing chat id for bot
yungwine Feb 12, 2025
6fdba7a
alert bot ux improves
yungwine Feb 12, 2025
1389081
Merge pull request #427 from yungwine/out-of-sync
igroman787 Feb 12, 2025
3630892
Merge pull request #428 from yungwine/restore-backup
igroman787 Feb 12, 2025
f959971
Merge pull request #429 from yungwine/bot-ux
igroman787 Feb 12, 2025
371a4a4
refactor enable tha
yungwine Feb 13, 2025
faf3489
fix refactor enable tha
yungwine Feb 13, 2025
02bfb3b
create mtc db backup more often
yungwine Feb 16, 2025
c95a177
create mtc db backup after every set
yungwine Feb 17, 2025
d613688
Merge pull request #430 from yungwine/tha
igroman787 Feb 17, 2025
dc480ed
Merge pull request #431 from yungwine/mtc-db
igroman787 Feb 17, 2025
028e67e
add new validator status fields parsing, add initial sync status and …
yungwine Feb 21, 2025
c4ac040
add initial sync to mtc
yungwine Feb 24, 2025
f1ea228
add initial sync alert
yungwine Feb 24, 2025
daa1b9b
update setting initial sync
yungwine Feb 25, 2025
b9c4199
do not send wallet address in alerts if not validator
yungwine Feb 26, 2025
dc7d068
add logs if adnl connection failed in alerts
yungwine Feb 26, 2025
638cf6c
do not use masterchain_out_of_ser if state serializer is disabled
yungwine Feb 26, 2025
af9cf22
add collated and validated blocks stats
yungwine Feb 28, 2025
99500eb
Merge pull request #434 from yungwine/bot-ux
igroman787 Feb 28, 2025
c779d20
refactor bot setup
yungwine Feb 28, 2025
2bfb150
Merge pull request #436 from yungwine/bot-update
igroman787 Feb 28, 2025
53594f1
Merge pull request #435 from ton-blockchain/dev
igroman787 Feb 28, 2025
f5cd1d3
update node statistics collecting
yungwine Feb 28, 2025
34c7970
print ls stats to status
yungwine Mar 3, 2025
8180af5
add prometheus ls metrics
yungwine Mar 3, 2025
8f55bdc
send alert zero_block_created every 3 hours
yungwine Mar 4, 2025
cb155a1
upd numbers formatting
yungwine Mar 4, 2025
53bf2f8
upd numbers formatting 2
yungwine Mar 4, 2025
75a46ad
add validation prometheus metrics
yungwine Mar 5, 2025
66b98b8
fix get_node_statistics
yungwine Mar 7, 2025
099ebb4
add active_validator_groups to status
yungwine Mar 7, 2025
a642374
update collated_blocks in status
yungwine Mar 8, 2025
6431ec3
Merge pull request #438 from yungwine/bot-ux
igroman787 Mar 10, 2025
ead93fe
Merge pull request #439 from ton-blockchain/dev
igroman787 Mar 15, 2025
6910ce9
Merge pull request #440 from yungwine/stats
igroman787 Apr 3, 2025
b941576
Merge pull request #443 from ton-blockchain/dev
igroman787 Apr 3, 2025
d0dacc9
fix required_balance_for_loan credit decimal
RainBoltz Apr 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![GitHub stars](https://img.shields.io/github/stars/ton-blockchain/mytonctrl?style=flat-square&logo=github) ![GitHub forks](https://img.shields.io/github/forks/ton-blockchain/mytonctrl?style=flat-square&logo=github) ![GitHub issues](https://img.shields.io/github/issues/ton-blockchain/mytonctrl?style=flat-square&logo=github) ![GitHub pull requests](https://img.shields.io/github/issues-pr/ton-blockchain/mytonctrl?style=flat-square&logo=github) ![GitHub last commit](https://img.shields.io/github/last-commit/ton-blockchain/mytonctrl?style=flat-square&logo=github) ![GitHub license](https://img.shields.io/github/license/ton-blockchain/mytonctrl?style=flat-square&logo=github)

<!-- omit from toc -->
<!-- omit from toc -->
# MyTonCtrl

<!-- omit from toc -->
Expand Down Expand Up @@ -58,12 +58,6 @@ Mytonctrl's documentation can be found at https://docs.ton.org/participate/run-n
- [x] Show offers
- [x] Vote for the proposal
- [x] Automatic voting for previously voted proposals
- [x] Domain management
- [x] Rent a new domain
- [x] Show rented domains
- [x] Show domain status
- [x] Delete domain
- [ ] Automatic domain renewal
- [x] Controlling the validator
- [x] Participate in the election of a validator
- [x] Return bet + reward
Expand Down
11 changes: 10 additions & 1 deletion modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
from modules.validator import ValidatorModule
from modules.controller import ControllerModule
from modules.liteserver import LiteserverModule
from modules.alert_bot import AlertBotModule
from modules.prometheus import PrometheusModule


MODES = {
'validator': ValidatorModule,
'nominator-pool': NominatorPoolModule,
'single-nominator': SingleNominatorModule,
'liquid-staking': ControllerModule,
'liteserver': LiteserverModule
'liteserver': LiteserverModule,
'alert-bot': AlertBotModule,
'prometheus': PrometheusModule
}


Expand Down Expand Up @@ -54,6 +58,11 @@ class Setting:
'useDefaultCustomOverlays': Setting(None, True, 'Participate in default custom overlays node eligible to'),
'defaultCustomOverlaysUrl': Setting(None, 'https://ton-blockchain.github.io/fallback_custom_overlays.json', 'Default custom overlays config url'),
'debug': Setting(None, False, 'Debug mtc console mode. Prints Traceback on errors'),
'subscribe_tg_channel': Setting('validator', False, 'Disables warning about subscribing to the `TON STATUS` channel'),
'auto_backup': Setting('validator', None, 'Make validator backup every election'),
'auto_backup_path': Setting('validator', '/tmp/mytoncore/auto_backups/', 'Path to store auto-backups'),
'prometheus_url': Setting('prometheus', None, 'Prometheus pushgateway url'),
'onlyNode': Setting(None, None, 'MyTonCtrl will work only for collecting validator telemetry (if `sendTelemetry` is True), without participating in Elections and etc.')
}


Expand Down
Loading