SMT hard fork testing report #5 : Emission token unit bug, calling for more support
smt·@howo·
0.000 HBDSMT hard fork testing report #5 : Emission token unit bug, calling for more support
 Hello, ## Asking for more support When I started this proposal, I assumed that the smt testing period would last about three months, so I put the end of my proposal in three months, but my proposal is coming to an end and the testing is still ongoing, so I would like to ask for your support on my followup proposal, obviously should the testing end before the end of the proposal, I will cancel the proposal now that it no longer serves a purpose. Here's a few easy links to vote on it : https://steemproposals.com/proposal/70 [steemconnect](https://beta.steemconnect.com/sign/update-proposal-votes?proposal_ids=%5B70%5D&approve=true) Anyways, onto the report ## The previous bug is still ongoing The steemit team worked hard and pushed a fix for the previous bug I found, but alas, it came back with another issue linked to it. So the testnet has been restarted with some additional logging so that we can have more insight on how to fix it for good. I have restarted my testnet killer script (source here : https://github.com/drov0/hf23-testing/blob/master/bulk_full_setup.js) and the testnet should crash in the coming days. Hopefully this will be the last time this script works. ## Another issue with the emission operation found Meanwhile while reading some code I realized that with the emission operation it is possible to set it up so that the chain will emit tokens to an account that doesn't exists. This wouldn't have any bad effect when the emission object is created, but as soon as the smt launches and the first emission executes itself, the chain won't realize that the account doesn't exists and basically give tokens to a nonexistent account. Which would, as you can expect, would probably crash the network, I didn't put this theory to the test as this would just delay further testing. Chain restarts are quite time consuming. The reason why is that it's not an obvious flaw since you can set various emission destinations market, vesting, reward pool and founders. And there is quite a bit of code there in order to support those various destinations. ## Fixing the issue While I was at it and since the steemit team is focused on the other bug, I figured I would to make the fix myself, so I submitted a pull request with the necessary code changes to fix the issue : https://github.com/steemit/steem/pull/3582 it's working but it's lacking some unit tests. So I'll do some more work on it later on. ## Does this bug has a twin ? Doing all this and realizing that the emission target accounts (vesting, reward pool etc etc) system is quite similar for the ICO part, so I've checked it out as well. And it looks like it does not have one, as you can see here : https://github.com/steemit/steem/blob/master/libraries/chain/smt_evaluator.cpp#L135 This function calls this other function (https://github.com/steemit/steem/blob/master/libraries/chain/smt_evaluator.cpp#L122) to validate all the targets. So all good on that end. Anyways that's about it for this report. Please consider voting my followup proposal using these links : https://steemproposals.com/proposal/70 [steemconnect](https://beta.steemconnect.com/sign/update-proposal-votes?proposal_ids=%5B70%5D&approve=true)
👍 reward.tier5, mustard-seed, wordit, coreabeforekorea, lotusofmymom, alitavirgen, jaydih, kimseun, kanadaramagi123, loveecho, angelslake, sj-jeong, wondumyungga, aquawink, ringit, talkative-bk, whatdidshewear, sjgod4018, perrymine, jaykayw, photoholic, we-together, gerber, friendlystranger, daan, exyle, accelerator, piotrgrafik, cadawg, bozz, bestboom, dlike, triptolemus, permaculturedude, steem.leo, leo.voter, leo.syndication, ribary, tarazkp, toocurious, miti, nateaguila, rycharde, techken, blockbrothers, earlmonk, laissez-faire, mosquito76, fsm-liquid, map10k, triplea.bot, mapxv, maxuva, maxuvb, maxuvc, maxuvd, maxuve, bilpcoinpower, babytarazkp, webdeals, kiwisteem, bigbot, darthgexe, raiseup, morwen, joe.public, nenya, dalz, ultima-alianza, klima, quenty, cgames, freepress, mehta, stupid, unpopular, ritxi, perthmint, swiftcash, donchate, genet, sandcat, baycat, oncilla, margay, mcoinz79, magicmonk, lemouth, itchyfeetdonica, feedmytwi, kimzwarch, omstavan, steemfriends, russia-btc, howo, culgin, spurisna, tubcat, debtfreein2, trafalgar, znnuksfe, raindrop, traf, tipsybosphorus, shaka, ilyasismail, kiwi-crypto, uwelang, misan, vannour, wajahatsardar, obvious, sonbulut, steem.ens, starworld, botante, rayshiuimages, arispranata5, plainoldme, churchofgod, corsica, wwwfernand, amoonshot, the.circle, ammar0344, rokyupjung, funcounts, agromeror, jamzed, sqljoker, chatitsimo, rawbe, saqibnazir, milarose, drsensor, raise-me-up, fredrikaa, fourfourfun, tdogvoid, rosepac, sustainablyyours, aro.steem, tomatom, anomalogy, bilpcoinrecords, bilpcoinbpc, briggsy, argentsilver, borislavzlatanov, djalma-a-v, galorum, jamesbattler, gadrian, anggreklestari, cardboard, profitcheck, tipu.curator, tonystarkalive, greenman, primeradue, freddio, guppy123, msena, vicgame, boykeren, youngmusician, yabapmatt, crokkon, pvinny69, abdoshib251, traciyork, pastzam, sniper555, atanas007, masterthematrix, theycallmedan, martie7, eturnerx, bpcvoter2, bpcvoter3, resiliencia, cryptosearch, oberdan, steemyoda, shaotech, jexus77, sekhet, santoninoatocha, tiababi, sonder-an, elmundodexao, cloris, leynedayana, darrenfj, bettman, bryan-imhoff, jungch98, goumao, wf9877, fractalnode, sarakey, tongchat27, geoffrey, gunthertopp, travoved, bitking50, leesujin, barton26, rarediamond, bue, gulf41, christianytony, mysupport, superhardness, netuoso, gandalfthewhite, sacrix, cervantes, ricardo993, wilsonlozano, thebilpcointrain, gargon, elfictron, genesisojeda, javyeslava.photo, angoujkalis, iamsaray, bilpcoin.pay, pgarcgo, hijosdelhombre, arrozymangophoto, jsxchemistry, eaamez, juancrdrums, jgcastrillo19, tincho, simonmaz, wilkynson, sweetdesserts, phaazer1, libe, jesusmedit, davidcurrele, dulcinea, andresbriceno, bdlatif, aliriera, votepower, andreasalas, aniita, patris, renataboreal, wartrapa, titin, fdataline77, maastro, joso, velazquezboy, milyy, metodologiaecs, justtryme90, teo, salvao, yooerlyn, cyprianj, desireeart, reinaseq, artmedina, yiobri, racentenog, psyo, albagargon, cuvi, artemisjane26, sartigas16, nadieramirez, dechastre, carita-feliz, javiermurillo, jtm.support, mdcomes, fakj94, val.halla, henryconache, gravii4, perniachiquito, pabloptimista, lizdeluca, ratspencer, hashzone91, nazer, hyperbatata, josuepalacios, noticias, cataluz, maticpecovnik, sayago, palasatenea, tokengold, fnux, tsoldovieri, reimerlin, gabox, malvyconejero, adonisr, kaux, templo.pay, jkj, spanishchef, neymarjr, ibiza, aneblueberry, magoia, teacher, heiditravels, luisucv34, fidel-castro, kilianmiguel, mpandrew, soymanu, mariacherries, freecreative, hectgranate, fernando.lubezki, adyorka, kranga, dinocreative, blocktrades, trans-juanmi, curiosokeyko, bohemian.machine, yanirauseche, zackarie, sirimirithirdeye, daniel.dalo, carlosrada, esthersanchez, wackou, juanfb, julian.alejandro, inedido, mike961, memes777, ricardomello, coquiunlimited, donasys, opheliapoe, dabird, nascimentoab, nathanpieters, parth7878, rafarosado, steeminer4up, minuetoacademy, dream.trip, fionasfavourites, kissandra, abitcoinskeptic, we-are-palcoin, shogo, andreasgrubhofer, markkujantunen, steemonboarder, alexei83, juliaakther, faissalchahid, putehs, disguarpe, onestop, ae1000, arrit, judasp, connor-russo, voter002, blakemag, hjmarseille, steempeak, pedrohmc23, mehadihasansagor, mujide, voter000, hhidna1877, zakia, ihal0001, sultan-aceh, jarvie, georgecri80, ozannn, bewarecenterbase, selfvotejustice, steamsteem, cinefilm, accountsale, haasonline, cjzachary, vezo, we-are, spikykevin, treskiev, shan121, rofilm, upvotenev, uncommonriad, bhagoley, cpufronz, art-venture, myskye, smooth, forexlive, micrologicer, johnnalsam, kns630, mobileappsstore, shonnlailai, kyawnaungsoe, micrologic, litinghui, investegg, khalil319, aceh1001art, kuberman, kaeserotor, steemistifier, arcange, raphaelle, sharkthelion, ronpurteetv, stef1, waqasrizvi,